HDFS security mode

Security mode: It is a special state of HDFS. In this state, only data reading is allowed, and data modification and addition operations are not allowed.
When to enter safe mode: Enter safe mode when the cluster restarts.
What's more in the safe mode: When the DataNode starts, it will report the available blocks and other status to the namenode.
How to check the current status of the cluster: hdfs dfsadmin -safemode get
How to enter safe mode: hdfs dfsadmin -safemode enter
How to exit safe mode: hdfs dfsadmin -safemode leave

Guess you like

Origin blog.csdn.net/Dreamy_zsy/article/details/102999036