namenode is not formatted in hadoop namenode is not formatted in hadoop hadoop hadoop

namenode is not formatted in hadoop


Why can I see only jps in normal account?

As you have started the daemons with sudo, root user owns the processes. The command jps reports only the JVMs for which it has the access permissions. The normal account has no access for the processes owned by root.

Why is namenode not started?

java.io.IOException: NameNode is not formatted.

Namenode is not yet formatted. It is possible that you have missed to provide Y when the format command prompted for (Y/N).


Not sure but check the ownership of the namenode folder.

It should be hadoop user or associate user which has authority to access this folder.

I have the same issue and solved by chnaging the ownership of the folder. Also assign full permission to the folder.

Hope this helps.


Check whether properties are properly set are not in core-site.xml and hdfs-site.xml

Then run the following command

$ hdfs namenode -format