Error while running any hadoop hdfs file system command

hadoophdfs

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

Best Answer

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

hdfs dfs -ls /

Or:

hadoop fs -ls /