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

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6.0
    • None
    • hdfs
    • 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

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

            Dates

              Created:
              Updated: