I was facing the issue of namenode not starting. I found a solution using following:
- first delete all contents from temporary folder:
rm -Rf <tmp dir>
(my was /usr/local/hadoop/tmp) - format the namenode:
bin/hadoop namenode -format
- start all processes again:
bin/start-all.sh
You may consider rolling back as well using checkpoint (if you had it enabled).