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

RU - Use haadmin failover command instead of killing ZKFC during upgrade/downgrade

    XMLWordPrintableJSON

    Details

      Description

      Currently RU orchestration during upgrade/downgrade kills ZKFC on the active NameNode to initiate a failover to standby. We should instead use the failover command.
      E.g.,

      su hdfs -c 'hdfs haadmin -failover nn1 nn2'
      

      Where nn1 is the current namenode if it if the active one, and nn2 is the remaining namenode.

      This is safer than killing zkfc on the active namenode because this command first tries to gracefully transition a NameNode to the Standby state. If this fails, the fencing methods (as configured by dfs.ha.fencing.methods) will be attempted until one succeeds. After this process the second NameNode will be transitioned to the Active state.

      It reduces long waits between ZKFC kill, failure kicking-in after a timeout, and then NN becoming active.

        Attachments

        1. AMBARI-12488.patch
          10 kB
          Alejandro Fernandez
        2. AMBARI-12488.v1.patch
          0.6 kB
          Alejandro Fernandez
        3. AMBARI-12488.v2.patch
          0.6 kB
          Alejandro Fernandez

          Issue Links

            Activity

              People

              • Assignee:
                afernandez Alejandro Fernandez
                Reporter:
                afernandez Alejandro Fernandez
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: