-5

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

problem is while running any hdfs file system command I am getting following error example command : hadoop hdfs dfs -ls error : Could not find or load main class hdfs

Please advice

Regards,

Raj Kumar Rai
  • 109
  • 2
  • 10
  • This is not about programming, right? Go to ServerFault and ask there, please. – usr1234567 Jun 28 '14 at 16:40
  • the first argument for the 'hadoop' command is considered by the java compiler as the main class for the hadoop command you want to run, and `hadoop dfs` doesn't exist. It's or `hadoop fs -ls` or `hdfs dfs -ls` – eliasah Jun 29 '14 at 09:42

1 Answers1

0

Try running:

hadoop fs -ls

or

hdfs dfs -ls

what do they return?

fs and dfs are the same commands. Difference between `hadoop dfs` and `hadoop fs`

Remove either hadoop or hdfs and the command should run.

Community
  • 1
  • 1
antipko
  • 1
  • 2