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 1EC9CCAE2 for ; Mon, 3 Jun 2013 17:01:26 +0000 (UTC) Received: (qmail 49280 invoked by uid 500); 3 Jun 2013 17:01:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 48923 invoked by uid 500); 3 Jun 2013 17:01:25 -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 48349 invoked by uid 99); 3 Jun 2013 17:01:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 17:01:23 +0000 Date: Mon, 3 Jun 2013 17:01:23 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8640) ServerName in master may not initialize with the configured ipc address of hbase.master.ipc.address 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-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673317#comment-13673317 ] Lars Hofhansl commented on HBASE-8640: -------------------------------------- Posthumous +1 > ServerName in master may not initialize with the configured ipc address of hbase.master.ipc.address > --------------------------------------------------------------------------------------------------- > > Key: HBASE-8640 > URL: https://issues.apache.org/jira/browse/HBASE-8640 > Project: HBase > Issue Type: Bug > Components: master > Reporter: rajeshbabu > Assignee: rajeshbabu > Fix For: 0.98.0, 0.95.2, 0.94.9 > > Attachments: HBASE-8640_94.patch, HBASE-8640.patch > > > We are starting rpc server with default interface hostname or configured ipc address > {code} > this.rpcServer = HBaseRPC.getServer(this, > new Class[]{HMasterInterface.class, HMasterRegionInterface.class}, > initialIsa.getHostName(), // This is bindAddress if set else it's hostname > initialIsa.getPort(), > numHandlers, > 0, // we dont use high priority handlers in master > conf.getBoolean("hbase.rpc.verbose", false), conf, > 0); // this is a DNC w/o high priority handlers > {code} > But we are initialzing servername with default hostname always master znode also have this hostname. > {code} > String hostname = Strings.domainNamePointerToHostName(DNS.getDefaultHost( > conf.get("hbase.master.dns.interface", "default"), > conf.get("hbase.master.dns.nameserver", "default"))); > ... > this.serverName = new ServerName(hostname, > this.isa.getPort(), System.currentTimeMillis()); > {code} > If both default interface hostname and configured ipc address are not same clients will get MasterNotRunningException. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira