Hadoop dfs -ls complains

Can someone tell me what seems wrong here? The hadoop dfs command looks fine, but any of the 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

+5
source share
2 answers

hasoop fs -ls / some / path / here - will display the HDFS location, not the local local location, try this command first

hadoop fs -ls /

then follow the step-by-step instructions for other folders.

if you want to copy some files from the local directory to the user directory in the HDFS location, 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

+13
source

FS , , , HDFS, s3 .. dfs HDFS. , FS, / . DFS HDFS.

0

All Articles