Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-17951

Introduce validation of hostgroup mapping for active/standby namenode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • trunk
    • ambari-server, blueprints
    • None

    Description

      Ambari allows user to specify following properties when Namenode HA is enabled, but does not validate for correct mapping.

      "dfs_ha_initial_namenode_active" : "hostname or hostgroup reference",
      "dfs_ha_initial_namenode_standby" : "hostname or hostgroup referenceā€

      If the values for above properties are mentioned incorrectly following exception is thrown and NAMENODE fails to start.

      2016-07-27 18:54:43,522 WARN namenode.FSNamesystem (FSNamesystem.java:loadFromDisk(692)) - Encountered exception loading fsimage
      java.io.IOException: NameNode is not formatted.
      at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:225)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1015)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:690)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:688)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:752)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:992)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:976)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1686)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1754)

      Attachments

        1. AMBARI-17951-v2
          22 kB
          Amruta Borkar
        2. AMBARI-17951-v3.patch
          24 kB
          Amruta Borkar
        3. AMBARI-17951-v4.patch
          24 kB
          Amruta Borkar

        Issue Links

          Activity

            People

              arborkar Amruta Borkar
              arborkar Amruta Borkar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: