Home:ALL Converter>Hadoop namenode format

Hadoop namenode format

Ask Time:2014-04-29T15:20:59         Author:manojRaturi

Json Formatter

I followed link : http://sundersinghc.wordpress.com/2013/04/08/running-hadoop-on-cygwin-in-windows-single-node-cluster/

When formatting namenode I am facing this issue below:

$ ./hadoop namenode -format DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode

$ ./hdfs namenode -format Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode

I have checked all configuration files and hadoop classpath along with JAR everything is OK.

I tried it on both hadoop-2.2 and hadoop-2.4 as well with Java 7

Please help

Thanks,

Manoj

Author:manojRaturi,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23358109/hadoop-namenode-format
yy