Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hadoop dfs -ls complains

Tags:

ls

hadoop

Can anyone let me know what seems to be wrong here ? hadoop dfs command seems to be OK but any following options are not recognized.

[hadoop-0.20]$bin/hadoop dfs -ls ~/wordcount/input/ ls: Cannot access /home/cloudera/wordcount/input/ : No such file or directory

like image 576
jetulis Avatar asked Feb 05 '12 19:02

jetulis


1 Answers

hadoop fs -ls /some/path/here - will list a HDFS location, not your local linux location try first this command

hadoop fs -ls /

then investigate step by step other folders.

if you want to copy some files from local directory to users directory on HDFS location, then just use this:

hadoop fs -mkdir /users
hadoop fs -put /some/local/file /users

for more hdfs commands see this: http://hadoop.apache.org/common/docs/r0.20.0/hdfs_shell.html

like image 195
Anton Avatar answered Nov 15 '22 10:11

Anton