Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14448

Provide an appropriate Message when Secondary Namenode is not bootstrap initialized

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: hdfs
    • Labels:
      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.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              saileshpatel Sailesh Patel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: