[
https://issues.apache.org/jira/browse/HADOOP-7441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060638#comment-13060638
]
Daryn Sharp commented on HADOOP-7441:
-------------------------------------
FsShell was modified awhile back to retain relative paths. I understand the
intent of the change, but the patch is awkwardly handling one special case.
I'd be more comfortable with the command defaulting to the value of
{{getWorkingDirectory}} instead of {{Path.CUR_DIR}}.
> Improvement for the FsShell -copyFromLocal/-put"
> ------------------------------------------------
>
> Key: HADOOP-7441
> URL: https://issues.apache.org/jira/browse/HADOOP-7441
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 0.20.3
> Reporter: XieXianshan
> Attachments: HADOOP-7441, HADOOP-7441_2
>
>
> The message displayed is hard to understand while using the FsShell
> -copyFromLocal(or -put) without dst path.
> For instance:
> $hdfs dfs -copyFromLocal /work/tmp/xg
> copyFromLocal: `.': File exists
> $hdfs dfs -put /work/tmp/xg
> put: `.': File exists
> Therefore,the message should be changed as follow for more comprehensive.
> $hdfs dfs -copyFromLocal /work/tmp/xg
> copyFromLocal: `hdfs://localhost:9000/user/root': File exists
> $hdfs dfs -put /work/tmp/xg
> put: `hdfs://localhost:9000/user/root': File exists
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira