Koinos
Koinos

Reputation: 301

hadoop fs -ls “no such file or directory”

If i write the command :

[hdfs@nnode ~]$ hadoop fs -ls

i get the message :

ls: `.': No such file or directory

I know that hadoop fs -ls by default looks for the folder /home/hdfs and so i created it using

hadoop fs -mkdir /home

and then

hadoop fs -mkdir /home/hdfs

however i still get the message:

ls: `.': No such file or directory

Upvotes: 0

Views: 1475

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191681

It's actually /user/hdfs, not /home

Try

hadoop fs -mkdir -p /user/hdfs

Upvotes: 2

Related Questions