HBASE-13820 Zookeeper is failing to start. (Ashish Singhi)
This commit is contained in:
parent
dcc711fff2
commit
841c7cf264
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue