You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/08/16 11:12:40 UTC

[GitHub] [hadoop] bgaborg commented on issue #1302: HADOOP-16138. hadoop fs mkdir / of nonexistent abfs container raises NPE

bgaborg commented on issue #1302: HADOOP-16138. hadoop fs mkdir / of nonexistent abfs container raises NPE
URL: https://github.com/apache/hadoop/pull/1302#issuecomment-521974548
 
 
   Yeah, I need to add a message which can be understood easily.
   
   The hard thing is that this message comes from `org.apache.hadoop.fs.shell.Mkdir#processPath`:
   ```java
     @Override
     protected void processPath(PathData item) throws IOException {
       if (item.stat.isDirectory()) {
         if (!createParents) {
           throw new PathExistsException(item.toString());
         }
       } else {
         throw new PathIsNotDirectoryException(item.toString());
       }
     }
   ```
   
   so not from the `org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem`, so it's a little more tricky than I expected (at least for me) to solve this nicely.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org