[
https://issues.apache.org/jira/browse/HADOOP-8873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703560#comment-13703560
]
Suresh Srinivas commented on HADOOP-8873:
-----------------------------------------
{quote}
Mkdir doesn't fail if the parent directory doesn't exist on 1.2.0.
{quote}
I am not talking about parent director. I am talking about the target directory
that you are creating.
In 2.0 where mkdir -p is supported, if you run
{{mkdir -p /path/dir}} and /path/dir already exists, mkdir -p will not fail.
So in 1.2, if you do:
{{mkdir -p /path/dir}} and /path/dir already exists, mkdir will fail. That is
the main difference which makes ignoring -p on 1.2 not an option.
> Port HADOOP-8175 (Add mkdir -p flag) to branch-1
> ------------------------------------------------
>
> Key: HADOOP-8873
> URL: https://issues.apache.org/jira/browse/HADOOP-8873
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 1.2.0
> Reporter: Eli Collins
> Assignee: Akira AJISAKA
> Labels: newbie
>
> Per HADOOP-8551 let's port the mkdir -p option to branch-1 for a 1.x release
> to help users transition to the new shell behavior. In Hadoop 2.x mkdir
> currently requires the -p option to create parent directories but a program
> that specifies it won't work on 1.x since it doesn't support this option.
--
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