Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85CF210B18 for ; Wed, 17 Dec 2014 22:43:16 +0000 (UTC) Received: (qmail 63411 invoked by uid 500); 17 Dec 2014 22:43:15 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 63279 invoked by uid 500); 17 Dec 2014 22:43:15 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 63037 invoked by uid 99); 17 Dec 2014 22:43:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 22:43:15 +0000 Date: Wed, 17 Dec 2014 22:43:15 +0000 (UTC) From: "Stephen Yuan Jiang (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-12706) Support multiple port numbers in ZK quorum string MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stephen Yuan Jiang created HBASE-12706: ------------------------------------------ Summary: Support multiple port numbers in ZK quorum string Key: HBASE-12706 URL: https://issues.apache.org/jira/browse/HBASE-12706 Project: HBase Issue Type: Improvement Affects Versions: 1.0.0, 2.0.0 Reporter: Stephen Yuan Jiang Assignee: Stephen Yuan Jiang Fix For: 1.0.0, 2.0.0 HBase does not allow the zk quorum string to contain port numbers in this format: {noformat} hostname1:port1,hostname2:port2,hostname3:port3 {noformat} Instead it expects the string to be in this format: {noformat} hostname1,hostname2,hostname3:port3 {noformat} And port 3 is used for all the client ports. We should flex the parsing so that both forms are accepted. A sample exception: {code} java.io.IOException: Cluster key passed pnj1-bcpc-r1n7:2181,pnj1-bcpc-r1n8:2181,pnj1-bcpc-r2n7:2181,pnj1-bcpc-r3n12:2181,pnj1-bcpc-r3n7:2181:2181:/hbase is invalid, the format should be:hbase.zookeeper.quorum:hbase.zookeeper.client.port:zookeeper.znode.parent at org.apache.hadoop.hbase.zookeeper.ZKUtil.transformClusterKey(ZKUtil.java:403) at org.apache.hadoop.hbase.zookeeper.ZKUtil.applyClusterKeyToConf(ZKUtil.java:386) at org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl.getPeerConf(ReplicationPeersZKImpl.java:304) at org.apache.hadoop.hbase.replication.ReplicationPeersZKImpl.createPeer(ReplicationPeersZKImpl.java:435) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)