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

Namenode is going under safemode

Highlighted

Namenode is going under safemode

Contributor

Namenode service is failing to start after server reboot or even service restart. Below is the error message in the log file.

Retrying after 10 seconds. Reason: Execution of 'hdfs dfsadmin -fs hdfs://namenode.localdomain:8020 -safemode get | grep 'Safe mode is OFF'' returned 1.

Workaround: manually take the namenode out of safemode using

[hdfs@namenode ~]$ hdfs dfsadmin -fs hdfs://namenode.localdomain:8020 -safemode get

Safe mode is ON

[hdfs@namenode ~]$ hdfs dfsadmin -fs hdfs://namenode.localdomain:8020 -safemode leave

Safe mode is OFF

[hdfs@namenode ~]$ hdfs dfsadmin -fs hdfs://namenode.localdomain:8020 -safemode get

Safe mode is OFF

Please advise.

Thank you,

Sachin A

1 REPLY 1
Highlighted

Re: Namenode is going under safemode