I was using Hadoop in a pseudo-distributed mode and everything was working fine. But then I had to restart my computer because of some reason. And now when I am trying to start Namenode and Datanode I can find only Datanode running. Could anyone tell me the possible reason of this problem? Or am I doing something wrong?
I tried both bin/start-all.sh
and bin/start-dfs.sh
.
I was facing the issue of namenode not starting. I found a solution using following:
rm -Rf <tmp dir>
(my was /usr/local/hadoop/tmp)bin/hadoop namenode -format
bin/start-all.sh
You may consider rolling back as well using checkpoint (if you had it enabled).