rUCHit31 rUCHit31 - 1 year ago 216
Linux Question

Hadoop command not found for user directory

I m new to hadoop and trying to view user directory
, but it says command not found.

hadoop fs -ls / user

Answer Source

You can follow the docs. You must run these commands

$ bin/hdfs namenode -format
$ sbin/
$ bin/hdfs dfs -mkdir /user
$ bin/hdfs dfs -mkdir /user/<username>

then you can see your contents with ls

$ bin/hdfs dfs -ls /user/<username> 


$ bin/hdfs dfs -ls .
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download