[ 
https://issues.apache.org/jira/browse/HDFS-13622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16548370#comment-16548370
 ] 

Siyao Meng commented on HDFS-13622:
-----------------------------------

Later I thought it actually makes sense when the shell just returns the parent 
directory doesn't exist, since we don't want to make too many RPC calls with 
item.fs.exists().

The user should then try to mkdir the parent or just use -p.

> dfs mkdir should not report the directory which to be created
> -------------------------------------------------------------
>
>                 Key: HDFS-13622
>                 URL: https://issues.apache.org/jira/browse/HDFS-13622
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Shweta
>            Priority: Major
>         Attachments: HDFS-13622.02.patch
>
>
> this is a bit misleading:
> {code}
> $ hdfs  dfs -mkdir /nonexistent/newdir
> mkdir: `/nonexistent/newdir': No such file or directory
> {code}
> I think this command should fail because "nonexistent" doesn't exists...
> the correct would be:
> {code}
> $ hdfs  dfs -mkdir /nonexistent/newdir
> mkdir: `/nonexistent': No such file or directory
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to