Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.6.0
-
None
-
None
Description
After HDFS is running for some time and then it is enabled for HDFS-HA, if the secondary bootstrap fails ( say because active NN was down), and then it is attempted to be started, the message in secondary NN says "NameNode is not formatted."
e.g.
2019-04-16 19:43:27,951 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode. java.io.IOException: NameNode is not formatted. at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:232) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1144)
Can this message be improved to say:
"Secondary NameNode is not initialized. Please Bootstrap Secondary Namenode"
or
"NameNode is not formatted/Secondary Namenode not Bootstrapped(Initialized)"
This is to avoid customers mistakenly formatting namenode and there by losing data.