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 "Daryn Sharp (Commented) (JIRA)" <ji...@apache.org> on 2012/03/02 01:46:56 UTC
[jira] [Commented] (HADOOP-8131) FsShell put doesn't correctly
handle a non-existent dir
[ https://issues.apache.org/jira/browse/HADOOP-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220547#comment-13220547 ]
Daryn Sharp commented on HADOOP-8131:
-------------------------------------
When using a 1-arg put, the shell default to using the pwd. If the target doesn't exist, the shell assumes it's a rename of the src file. So the temp file "$p._COPYING_" becomes ".._COPYING_". The move at the end of the copy tries to rename the temp file to ".", which is interpreted as the pwd, so the rename is a no-op.
> 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
>
> {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