Hadoop Name Node format fails
This error occurs if you have not created the /usr/local/hadoop_store/hdfs/namenode
folder or it does not have correct permission.
Create the directory first. Try this in terminal:
sudo mkdir /usr/local/hadoop_store/hdfs/namenode
NOTE: Run this command as hadoop user.
Change permissions, if necessary.
sudo chown -R hadoopuser:hadoopgroup /usr/local/hadoop_store/hdfs/namenode
sudo chmod -R 777 /usr/local/hadoop_store/hdfs/namenode
Here, hadoopuser
is your hadoop username and hadoopgroup
is hadoop group name.
Which OS are you using on your hadoop cluster??
If you're running this on Ubuntu try this..
sudo bin/hadoop namenode -format