Don't know what's going on today when you start a cluster, when you view a process through JPS, there is always a standby Namenode process fails to start. View Log times is unable to load the Fsimage file. The logs are as follows:
It's obvious that the log is unable to load the metadata information, the solution:
Workaround:
1, Manual copy Namenode (active) on the server that is located on xxx/dfs/name/current/all files under Namenode (standby)
The corresponding folder of the server where you are located.
2. Reformat the Namenode (active), and then copy the formatted metadata to Namenode (standby).
(This method is used with caution!) Because, the metadata on reformatting Namenode,namenode will be lost, the metadata is lost, the consequence is unimaginable! )
Start the Hadoop report error org.apache.hadoop.hdfs.server.namenode.FSImage:Failed to the load image from Fsimagefile