hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-13820 Zookeeper is failing to start. (Ashish Singhi)
Date Tue, 02 Jun 2015 06:51:33 GMT
Repository: hbase
Updated Branches:
  refs/heads/master dcc711fff -> 841c7cf26


HBASE-13820 Zookeeper is failing to start. (Ashish Singhi)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/841c7cf2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/841c7cf2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/841c7cf2

Branch: refs/heads/master
Commit: 841c7cf2643a358d8b26a6d25c849e445a386833
Parents: dcc711f
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Tue Jun 2 12:21:04 2015 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Tue Jun 2 12:21:04 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/841c7cf2/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java
index 9f96c9c..47a3628 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKServerTool.java
@@ -19,8 +19,6 @@
 
 package org.apache.hadoop.hbase.zookeeper;
 
-import java.util.Properties;
-
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseInterfaceAudience;
@@ -39,8 +37,7 @@ public class ZKServerTool {
    */
   public static void main(String args[]) {
     Configuration conf = HBaseConfiguration.create();
-    Properties zkProps = ZKConfig.makeZKProps(conf);
-    String quorum = zkProps.getProperty(HConstants.ZOOKEEPER_QUORUM);
+    String quorum = conf.get(HConstants.ZOOKEEPER_QUORUM, HConstants.LOCALHOST);
 
     String[] values = quorum.split(",");
     for (String value : values) {
@@ -48,6 +45,5 @@ public class ZKServerTool {
       String host = parts[0];
       System.out.println("ZK host:" + host);
     }
-
   }
 }


Mime
View raw message