Y.Asmae
Y.Asmae

Reputation: 61

Could not format the Namenode in hadoop

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

Upvotes: 0

Views: 1953

Answers (3)

matesio
matesio

Reputation: 1604

try removing all hadoop temp data rm -Rf /app/hadoop/tmp/* then try again formatting

Upvotes: 1

Kacper
Kacper

Reputation: 4818

Does it work?

 ~/hadoop/bin/hdfs namenode -format

Upvotes: 0

Navarro
Navarro

Reputation: 1384

It means that you should not use hadoop namenode -format but hdfs namenode -format instead, since it has been deprecated.

Upvotes: 0

Related Questions