hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10965) Print fully qualified path in CommandWithDestination error messages
Date Mon, 28 Mar 2016 21:47:25 GMT

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

Hudson commented on HADOOP-10965:
---------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #9514 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9514/])
HADOOP-10965. Print fully qualified path in CommandWithDestination error (wang: rev 8bfaa80037365c0790083313a905d1e7d88b0682)
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/PathIOException.java
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellTouch.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Touch.java
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellCopy.java


> Print fully qualified path in CommandWithDestination error messages
> -------------------------------------------------------------------
>
>                 Key: HADOOP-10965
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10965
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: André Kelpe
>            Assignee: John Zhuge
>            Priority: Minor
>              Labels: supportability
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-10965.001.patch, HADOOP-10965.002.patch
>
>
> Whenever I try to copy data from local to a cluster, but forget to create the parent
directory first, I get a very confusing error message:
> {code}
> $ whoami
> fs111
> $ hadoop fs -ls  /user
> Found 2 items
> drwxr-xr-x   - fs111   supergroup          0 2014-08-11 20:17 /user/hive
> drwxr-xr-x   - vagrant supergroup          0 2014-08-11 19:15 /user/vagrant
> $ hadoop fs -copyFromLocal data data
> copyFromLocal: `data': No such file or directory
> {code}
> From the error message, you would say that the local "data" directory is not existing,
but that is not the case. What is missing is the "/user/fs111" directory on HDFS. After I
created it, the copyFromLocal command works fine.
> I believe the error message is confusing and should at least be fixed. What would be
even better, if hadoop could restore the old behaviour in 1.x, where copyFromLocal would just
create the directories, if they are missing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message