0

I am very new to hadoop and referring to the "hadoop for dummies" book. I have a VM with following specs: hadoop version 2.0.6-alpha bigtop os centos

The problem is when I run any hdfs file system command I get following error:

hadoop hdfs dfs -ls error : Could not find or load main class hdfs

Please advice

2 Answers 2

2

You don't call this via hadoop.
You can either run:

hdfs dfs -ls /

Or:

hadoop fs -ls /
2
  • thanks faker this worked. can you please clarify what was the meaning of hadoop written before command. bcoz it is written in this only in book. Jun 30, 2014 at 6:03
  • it worked like a charm.
    – sathya
    Jul 9, 2018 at 21:16
0

I am not sure it's going to answer your question but

  Hadoop version 1

All command line utilities were in 'hadoop install dir'/bin directory. All hadoop commands are invoked by the bin/hadoop script

  Hadoop version 2
  Commands live in two directories.

bin : Most used commands like hadoop, mapred ..etc
sbin: Administrative commands like start-all.sh (command used to start all Hadoop daemons ..etc) and stop-all.sh

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .