From 841c7cf2643a358d8b26a6d25c849e445a386833 Mon Sep 17 00:00:00 2001 From: anoopsjohn Date: Tue, 2 Jun 2015 12:21:04 +0530 Subject: [PATCH] HBASE-13820 Zookeeper is failing to start. (Ashish Singhi) --- .../org/apache/hadoop/hbase/zookeeper/ZKServerTool.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 9f96c9ceb74..47a3628f421 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); } - } }