Return-Path: Delivered-To: apmail-hadoop-hbase-issues-archive@minotaur.apache.org Received: (qmail 26225 invoked from network); 13 Mar 2010 23:45:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Mar 2010 23:45:32 -0000 Received: (qmail 7569 invoked by uid 500); 13 Mar 2010 23:44:50 -0000 Delivered-To: apmail-hadoop-hbase-issues-archive@hadoop.apache.org Received: (qmail 7545 invoked by uid 500); 13 Mar 2010 23:44:50 -0000 Mailing-List: contact hbase-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-issues@hadoop.apache.org Delivered-To: mailing list hbase-issues@hadoop.apache.org Received: (qmail 7537 invoked by uid 99); 13 Mar 2010 23:44:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 23:44:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 23:44:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 23780234C045 for ; Sat, 13 Mar 2010 23:44:27 +0000 (UTC) Message-ID: <1326534057.249931268523867130.JavaMail.jira@brutus.apache.org> Date: Sat, 13 Mar 2010 23:44:27 +0000 (UTC) From: "Jean-Daniel Cryans (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Commented: (HBASE-2305) Client port for ZK has no default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844987#action_12844987 ] Jean-Daniel Cryans commented on HBASE-2305: ------------------------------------------- Some comments: - ZK_CFG_PROPERTY + "clientPort", should be made static final - This should really be 1 line: {code} + int clientPortValue = HQuorumPeer.DEFAULT_ZOOKEPER_CLIENT_PORT; + zkProperties.put(clientPortKey, Integer.valueOf(clientPortValue)) {code} - assignDefaultsForMissingProperties is a bit misleading, put all the other missing properties in there if there's any. If not, don't create a new method just for that. - No need to call Integer.valueOf on ints. Thx for looking at this Suraj! > Client port for ZK has no default > --------------------------------- > > Key: HBASE-2305 > URL: https://issues.apache.org/jira/browse/HBASE-2305 > Project: Hadoop HBase > Issue Type: Bug > Reporter: Jean-Daniel Cryans > Fix For: 0.20.4, 0.21.0 > > Attachments: HBASE-2305.patch > > > From Doug Meil on the list: > {code} > config.set("hbase.zookeeper.property.clientPort","2181"); > This is consistent with other references to the importance of "hbase.zookeeper.quorum" except that we did this testing with the intent of connecting using only parameters set in code to eliminate any classpath issues with XML files. > FYI... If the last parameter isn't set you'll get the following error.... could this be defaulted to a reasonable value? > 10/03/09 10:04:55 ERROR zookeeper.ZooKeeperWrapper: no clientPort found in zoo.cfg > Exception in thread "main" java.io.IOException: Could not read quorum servers from zoo.cfg > at org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.(ZooKeeperWrapper.java:85) > at org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher.getZooKeeperWrapper(HConnectionManager.java:223) > at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getZooKeeperWrapper(HConnectionManager.java:932) > at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:948) > at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:625) > {code} > It should be easy to set it to 2181 along with the other port settings in HQuorumPeer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.