Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 412829E05 for ; Sun, 19 Feb 2012 02:14:21 +0000 (UTC) Received: (qmail 94026 invoked by uid 500); 19 Feb 2012 02:14:21 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 93891 invoked by uid 500); 19 Feb 2012 02:14:21 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 93850 invoked by uid 99); 19 Feb 2012 02:14:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 02:14:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 02:14:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 155111BF9B0 for ; Sun, 19 Feb 2012 02:14:00 +0000 (UTC) Date: Sun, 19 Feb 2012 02:14:00 +0000 (UTC) From: "David S. Wang (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1329100574.55370.1329617640088.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <127858397.45350.1326736780610.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5209) HConnection/HMasterInterface should allow for way to get hostname of currently active master in multi-master HBase setup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-5209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David S. Wang updated HBASE-5209: --------------------------------- Attachment: HBASE_5209_v5.diff Patch with right VERSION. > HConnection/HMasterInterface should allow for way to get hostname of currently active master in multi-master HBase setup > ------------------------------------------------------------------------------------------------------------------------ > > Key: HBASE-5209 > URL: https://issues.apache.org/jira/browse/HBASE-5209 > Project: HBase > Issue Type: Improvement > Components: master > Affects Versions: 0.94.0, 0.90.5, 0.92.0 > Reporter: Aditya Acharya > Assignee: David S. Wang > Fix For: 0.94.0, 0.90.7, 0.92.1 > > Attachments: HBASE-5209-v0.diff, HBASE-5209-v1.diff, HBASE_5209_v4.diff, HBASE_5209_v5.diff > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira