I am trying to configure Hadoop 2.5.1 on my windows machine using cygwin. But whenever i try to run the command
hdfs namenode -format
the following error occurs
Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode
I have set the JAVA_HOME as
H:\cygwin\usr\local\Java
both in bashrc as well as in hadoop-env.sh. Can anyone help me as which part I might be going wrong at ???