0

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

Y.Asmae
  • 61
  • 6

3 Answers3

1

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

matesio
  • 1,584
  • 17
  • 31
0

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

Navarro
  • 1,284
  • 2
  • 17
  • 40
0

Does it work?

 ~/hadoop/bin/hdfs namenode -format
Kacper
  • 4,798
  • 2
  • 19
  • 34