rUCHit31
rUCHit31

Reputation: 344

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

Upvotes: 0

Views: 1038

Answers (1)

hard coder
hard coder

Reputation: 5705

You can follow the docs. You must run these commands

$ bin/hdfs namenode -format
$ sbin/start-dfs.sh
$ 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> 

or

$ bin/hdfs dfs -ls .

Upvotes: 1

Related Questions