[
https://issues.apache.org/jira/browse/HADOOP-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238433#comment-13238433
]
Daryn Sharp commented on HADOOP-8131:
-------------------------------------
@Eli: I believe the auto-create was removed with the earlier redesign but crept
back in later so I didn't view this particular jira as incompatible. Since the
goal has been to mimic the real shell, this non-posix "feature" was
intentionally (again?) removed to solve this jira.
It also resolves the inconsistency between single source vs. multiple sources
copies. Single source copy would formerly auto-create non-existent dirs, but a
multi-source copy fails if the target isn't an existing dir. Ergo, copying a
glob to a non-existent path was indeterminate depending on the number of glob
matches: 1 match auto-created, more than 1 match failed.
Internally, we found the impact to be minimal (a single mkdir), so we favored
retaining the posix semantics of copy. Some relied on the auto-create because
mkdir failed if the directory already exists, thus HADOOP-8175 added a -p flag.
If you feel strongly on restoring the former non-posix behavior and
single/multi source inconsistency, I can look into doing so.
> FsShell put doesn't correctly handle a non-existent dir
> -------------------------------------------------------
>
> Key: HADOOP-8131
> URL: https://issues.apache.org/jira/browse/HADOOP-8131
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.23.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Priority: Critical
> Fix For: 0.23.2
>
> Attachments: HADOOP-8131.patch, HADOOP-8131.patch, HADOOP-8131.patch,
> HADOOP-8131.patch
>
>
> {noformat}
> $ hadoop fs -ls
> ls: `.': No such file or directory
> $ hadoop fs -put file
> $ hadoop fs -ls
> Found 1 items
> -rw-r--r-- 1 kihwal supergroup 2076 2011-11-04 10:37 .._COPYING_
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira