copyFromLocal No such file or directory



0
[cloudera@localhost datasets]$ sudo -u hdfs hadoop fs -copyFromLocal tpcds_ss_tables.sql /wordcount/input/wordinput.txt
copyFromLocal: `tpcds_ss_tables.sql': No such file or directory
[cloudera@localhost datasets]$

hi
I get no file error when I try to execute copyFromLocal command
Am I doing something wrong?

1 Answer(s)


0

hi Vijay,

You don't have to use "sudo", before copying make sure the file you wanted to copy is there in the local file system and execute this:

hadoop fs -put tpcds_ss_tables.sql /user/cloudera/wordcount.txt

Thanks

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password