Support Questions
Find answers, ask questions, and share your expertise

Failed to format namenode

Failed to format namenode

New Contributor

Hi,

 

I'm a newcommer. 

 

When I first added HDFS to my cluster, "Failed to format namenode" error occured. For details, cloudera can not find information in /var/log/hadoop-hdfs/hadoop-cmf-hdfs-NAMENODE-redhat-test-02.log.out. I also cannot find this file in this folder. Does anyone know the solution? Thank you!

 

Best,

Lyuwei

 

4 REPLIES 4

Re: Failed to format namenode

Community Manager

I'll let others who are more well versed than me respond, but in the meantime, perhaps this thread will be of assistance. 

 

Failed to format NameNode. Program: hdfs/hdfs.sh


Cy Jervis, Manager, Community Program

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:
Community Guidelines
How to use the forum

Re: Failed to format namenode

Expert Contributor

Hello Lyuwei,

 

At first look, it seems to be a permission issue. Can you please check if /var/log/hadoop-hdfs as writable access for hdfs? Also, check & share permission for name node meta directory (i.e. value of dfs.namenode.name.dir).

 

Warm Regards.

Re: Failed to format namenode

New Contributor

How do you do that?

Re: Failed to format namenode

Super Guru

@Alec,

 

This is a very old thread. 

 

I recommend you start a thread and explain what you are doing and what problem you encounter.  Please include a screen shot of the error if you are seeing something similar so we can understand more clearly how to assist.