Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

namenode is in safe mode

avatar

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

avatar

hdfs dfsadmin -safemode leave

Michael-Bronson

View solution in original post

2 REPLIES 2

avatar

hdfs dfsadmin -safemode leave

Michael-Bronson

avatar
Super Collaborator

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

Command To Get Out Of Safe Mode Shared Above.