Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

namenode is in safe mode

Solved Go to solution

namenode is in safe mode

from the logs we can see that

what is the command to get name not not in safe mode ?

        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2345)
Caused by: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create file/spark2-history/.cffb30ea-b88b-4044-8e1d-017039458f94. Name node is in safe mode.
The reported blocks 4 needs additional 10 blocks to reach the threshold 0.9900 of total blocks 14.
The number of live datanodes 3 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkNameNodeSafeMode(FSNamesystem.java:1391)
        ... 13 more
Michael-Bronson
1 ACCEPTED SOLUTION

Accepted Solutions

Re: namenode is in safe mode

hdfs dfsadmin -safemode leave

Michael-Bronson
2 REPLIES 2

Re: namenode is in safe mode

hdfs dfsadmin -safemode leave

Michael-Bronson

Re: namenode is in safe mode

Cloudera Employee

Command To Check SafeMode On/Off: hdfs dfsadmin -safemode get

Command To Get Out Of Safe Mode Shared Above.

Don't have an account?
Coming from Hortonworks? Activate your account here