public class ZKConfig extends Object
| Constructor and Description |
|---|
ZKConfig() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getZKQuorumServersString(org.apache.hadoop.conf.Configuration conf)
Return the ZK Quorum servers string given the specified configuration.
|
static String |
getZKQuorumServersString(Properties properties)
Return the ZK Quorum servers string given zk properties returned by
makeZKProps
|
static Properties |
makeZKProps(org.apache.hadoop.conf.Configuration conf)
Make a Properties object holding ZooKeeper config equivalent to zoo.cfg.
|
static Properties |
parseZooCfg(org.apache.hadoop.conf.Configuration conf,
InputStream inputStream)
Parse ZooKeeper's zoo.cfg, injecting Dcs Configuration variables in.
|
public static Properties makeZKProps(org.apache.hadoop.conf.Configuration conf)
conf - Configuration to read from.public static Properties parseZooCfg(org.apache.hadoop.conf.Configuration conf, InputStream inputStream) throws IOException
conf - DcsConfiguration to use for injecting variables.inputStream - InputStream to read from.IOException - if anything goes wrong parsing configpublic static String getZKQuorumServersString(Properties properties)
properties - public static String getZKQuorumServersString(org.apache.hadoop.conf.Configuration conf)
conf - Copyright © 2020. All rights reserved.