Try these commands:
1. /usr/local/hadoop/bin$./stop-all.sh (If hadoop is already running)
2. $sudo rm -Rf /app/hadoop/tmp/* (This command will remove temporary files from hadoop)
3. /usr/local/hadoop/bin$hadoop namenode -format (Format HDFS)
4. /usr/local/hadoop/bin$./start-all.sh (Restart Hadoop)
5.$jps
Namenode Datanode Jobtracker Tasktracker SecondaryNameNode
All these should be present
Try these commands:
1. /usr/local/ hadoop/ bin$./stop- all.sh
(If hadoop is already running)
2. $sudo rm -Rf /app/hadoop/tmp/*
(This command will remove temporary files from hadoop)
3. /usr/local/ hadoop/ bin$hadoop namenode -format
(Format HDFS)
4. /usr/local/ hadoop/ bin$./start- all.sh
(Restart Hadoop)
5.$jps
Namenode
Datanode
Jobtracker
Tasktracker
SecondaryNameNode
All these should be present