|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.zookeeper.ZKConfig
public class ZKConfig
Utility methods for reading, parsing, and building zookeeper configuration.
| Constructor Summary | |
|---|---|
ZKConfig()
|
|
| Method Summary | |
|---|---|
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 HBase Configuration variables in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZKConfig()
| Method Detail |
|---|
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 - HBaseConfiguration 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||