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

In case of HA-enabled cluster on shutting down Active Master, Ambari rest api call and HBase quick links show two Active Masters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.5.0
    • 2.5.1
    • None

    Description

      In case of HA-enabled cluster on shutting down Active Master, Ambari rest api call and HBase quick links show two Active Masters. On restarting the stopped master, number of Active Master is down to 1.

      Rest api call
      https://host1:8443/api/v1/clusters/cl1/host_components?HostRoles/component_name=HBASE_MASTER&metrics/hbase/master/IsActiveMaster=true

      Rest Api call response

      {
      "href": "https://host1:8443/api/v1/clusters/cl1/host_components?HostRoles/component_name=HBASE_MASTER&metrics/hbase/master/IsActiveMaster=true",
      "items": [
      {
      "href": "https://host1:8443/api/v1/clusters/cl1/hosts/ctr-e129-1487033772569-55070-01-000002.localdomain/host_components/HBASE_MASTER",
      "HostRoles": {
      "cluster_name": "cl1",
      "component_name": "HBASE_MASTER",
      "host_name": "ctr-e129-1487033772569-55070-01-000002.localdomain"
      },
      "host": {
      "href": "https://host1:8443/api/v1/clusters/cl1/hosts/ctr-e129-1487033772569-55070-01-000002.localdomain"
      },
      "metrics": {
      "hbase": {
      "master": {
      "IsActiveMaster": "true"
      }
      }
      }
      },
      {
      "href": "https://host1:8443/api/v1/clusters/cl1/hosts/ctr-e129-1487033772569-55070-01-000003.localdomain/host_components/HBASE_MASTER",
      "HostRoles": {
      "cluster_name": "cl1",
      "component_name": "HBASE_MASTER",
      "host_name": "ctr-e129-1487033772569-55070-01-000003.localdomain"
      },
      "host": {
      "href": "https://host1:8443/api/v1/clusters/cl1/hosts/ctr-e129-1487033772569-55070-01-000003.localdomain"
      },
      "metrics": {
      "hbase": {
      "master": {
      "IsActiveMaster": "true"
      }
      }
      }
      }
      ]
      }
      

      Attaching screenshots.

      Steps:

      • On HA-enabled cluster go to HBase summary page.
      • Shutdown the current HBase Active Master
      • Verify the hbase quick links menu. You should see "(Active)" for couple of hostnames. If not, please refresh and verify.
      • Click the rest api call and verify that two masters have IsActiveMaster value as true

      Attachments

        1. AMBARI-20591.patch
          6 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              romil.choksi Romil Choksi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: