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