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

Namenode marked as INITIAL standby could potentially never start if other namenode is down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 2.2-next
    • stacks
    • None

    Description

      Issue:

      1. During Namenode HA blueprint deployment, we configure the name nodes to start in active/standby mode based on the following properties
             {
                "hadoop-env": {
                  "properties" : {
                    "dfs_ha_initial_namenode_active" : "host1",
                    "dfs_ha_initial_namenode_standby" : "host2”
                  }
                }
              }
        
      2. The current logic is to always bootstrap the name node marked as standby.
      3. This will lead to the Namenode marked as Standby to never start under the following situation
      • Cluster is deployed successfully
      • Both name nodes are stopped
      • Start the name node marked as standby. Namenode will never start.
      • This is because the standby name node will try to bootstrap again.
      • However to bootstrap a name node an active name node is required. Based on the HDFS logic the first step done when bootstrapping is to connect to the Active Namenode.
      • Also there is no need to bootstrap here as the name node should already be bootstrapped and should come back up as “Active"

      Attachments

        1. AMBARI-16028-trunk.patch
          6 kB
          Jayush Luniya

        Activity

          People

            jluniya Jayush Luniya
            jluniya Jayush Luniya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: