You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "André Kelpe (JIRA)" <ji...@apache.org> on 2014/08/13 12:52:12 UTC

[jira] [Created] (HADOOP-10965) Confusing error message in hadoop fs -copyFromLocal

André Kelpe created HADOOP-10965:
------------------------------------

             Summary: Confusing error message in hadoop fs -copyFromLocal
                 Key: HADOOP-10965
                 URL: https://issues.apache.org/jira/browse/HADOOP-10965
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 2.4.1
            Reporter: André Kelpe
            Priority: Minor


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.2#6252)