@InterfaceAudience.Private public class ZKConfig extends Object
Constructor and Description |
---|
ZKConfig() |
Modifier and Type | Method and Description |
---|---|
static String |
buildQuorumServerString(String[] serverHosts,
String clientPort)
Build the ZK quorum server string with "server:clientport" list, separated by ','
|
static String |
getZKQuorumServersString(org.apache.hadoop.conf.Configuration conf)
Return the ZK Quorum servers string given the specified configuration.
|
static Properties |
makeZKProps(org.apache.hadoop.conf.Configuration conf)
Make a Properties object holding ZooKeeper config.
|
static Properties |
parseZooCfg(org.apache.hadoop.conf.Configuration conf,
InputStream inputStream)
Deprecated.
in 0.96 onwards. HBase will no longer rely on zoo.cfg
availability.
|
public static Properties makeZKProps(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration to read from.@Deprecated public static Properties parseZooCfg(org.apache.hadoop.conf.Configuration conf, InputStream inputStream) throws IOException
conf
- HBaseConfiguration to use for injecting variables.inputStream
- InputStream to read from.IOException
- if anything goes wrong parsing configpublic static String buildQuorumServerString(String[] serverHosts, String clientPort)
serverHosts
- a list of servers for ZK quorumclientPort
- the default client portpublic static String getZKQuorumServersString(org.apache.hadoop.conf.Configuration conf)
conf
- Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.