Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5209

HConnection/HMasterInterface should allow for way to get hostname of currently active master in multi-master HBase setup

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.5, 0.92.0, 0.94.0
    • Fix Version/s: 0.92.1, 0.94.0
    • Component/s: master
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      ClusterStatus client running this change running against servers without this change will encounter an error in readFields() as the new client will be expecting extra fields at the end of the Writable that the old server will not be providing.

      Description

      I have a multi-master HBase set up, and I'm trying to programmatically determine which of the masters is currently active. But the API does not allow me to do this. There is a getMaster() method in the HConnection class, but it returns an HMasterInterface, whose methods do not allow me to find out which master won the last race. The API should have a getActiveMasterHostname() or something to that effect.

        Attachments

        1. HBASE_5209_v5.diff
          22 kB
          David S. Wang
        2. 5209.addendum
          0.7 kB
          Ted Yu

          Issue Links

            Activity

              People

              • Assignee:
                dsw David S. Wang
                Reporter:
                adityaacharya Aditya Acharya
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: