I\'m trying to get Hadoop running \'Local Mode\' on my Windows machine. I\'ve been using this guide: http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html
When
Try removing @ from @rem in hadoop-env.cmd and set JAVA_HOME=%JAVA_HOME%
rem The java implementation to use. Required.
set JAVA_HOME=%JAVA_HOME%
Then try running hdfs namenode -format
This solution worked for me