Home:ALL Converter>Could not format the Namenode in hadoop

Could not format the Namenode in hadoop

Ask Time:2016-10-10T20:23:31         Author:Y.Asmae

Json Formatter

While formatting namenode by executing the command " bin/hadoop namenode -format " i get this error:

hduser@ubuntu:~/hadoop/bin$ ./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

Author:Y.Asmae,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/39958219/could-not-format-the-namenode-in-hadoop
matesio :

try removing all hadoop temp data \n rm -Rf /app/hadoop/tmp/*\nthen try again formatting",
2016-10-11T23:23:08
Navarro :

It means that you should not use hadoop namenode -format but hdfs namenode -format instead, since it has been deprecated.",
2016-10-10T14:00:51
yy