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

Eli Collins commented on HADOOP-8551:
-------------------------------------

bq. If it's too much of a problem to s/mkdir /mkdir -p /

Just replacing mkdir with "mkdir -p" doesn't fix things because Hadoop 1.x 
doesn't support the "-p" option so if you just add "-p" everywhere your 
programs break on old releases. I'm surprised you haven't hit this trying to 
deploy 0.23.
                
> fs -mkdir creates parent directories without the -p option
> ----------------------------------------------------------
>
>                 Key: HADOOP-8551
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8551
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.3, 2.0.0-alpha, 3.0.0
>            Reporter: Robert Joseph Evans
>            Assignee: John George
>             Fix For: 0.23.3, 2.0.2-alpha
>
>         Attachments: HADOOP-8551.patch, HADOOP-8551.patch, HADOOP-8551.patch, 
> HADOOP-8551.patch
>
>
> hadoop fs -mkdir foo/bar will work even if bar is not present.  It should 
> only work if -p is given and foo is not present.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to