Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using HDFS/ FAQ/ Standby NameNode Fails to Be Restarted When the System Is Powered off During Metadata (Namespace) Storage
Updated on 2022-11-18 GMT+08:00

Standby NameNode Fails to Be Restarted When the System Is Powered off During Metadata (Namespace) Storage

Question

When the standby NameNode is powered off during metadata (namespace) storage, it fails to be started and the following error information is displayed.

Answer

When the standby NameNode is powered off during metadata (namespace) storage, it fails to be started and the MD5 file is damaged. Remove the damaged fsimage and start the standby NameNode to rectify the fault. After the rectification, the standby NameNode loads the previous fsimage and reproduces all edits.

Recovery procedure:

  1. Run the following command to remove the damaged fsimage:

    rm -rf ${BIGDATA_DATA_HOME}/namenode/current/fsimage_0000000000000096

  2. Start the standby NameNode.