|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hama.zookeeper.QuorumPeer
public class QuorumPeer
This class starts and runs the QuorumPeers
Field Summary |
---|
Constructor Summary | |
---|---|
QuorumPeer()
|
Method Summary | |
---|---|
static java.lang.String |
getZKQuorumServersString(org.apache.hadoop.conf.Configuration conf)
Return the ZK Quorum servers string given the specified configuration. |
static java.lang.String |
getZKQuorumServersString(java.util.Properties properties)
Return the ZK Quorum servers string given zk properties returned by makeZKProps |
static java.util.Properties |
makeZKProps(org.apache.hadoop.conf.Configuration conf)
Make a Properties object holding ZooKeeper config equivalent to zoo.cfg. |
static java.util.Properties |
parseZooCfg(org.apache.hadoop.conf.Configuration conf,
java.io.InputStream inputStream)
Parse ZooKeeper's zoo.cfg, injecting Hama Configuration variables in. |
static void |
run(org.apache.hadoop.conf.Configuration baseConf)
Parse ZooKeeper configuration from Hama XML config and run a QuorumPeer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuorumPeer()
Method Detail |
---|
public static void run(org.apache.hadoop.conf.Configuration baseConf)
baseConf
- Hadoop Configuration.public static java.util.Properties makeZKProps(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration to read from.
public static java.util.Properties parseZooCfg(org.apache.hadoop.conf.Configuration conf, java.io.InputStream inputStream) throws java.io.IOException
conf
- Configuration to use for injecting variables.inputStream
- InputStream to read from.
java.io.IOException
- if anything goes wrong parsing configpublic static java.lang.String getZKQuorumServersString(java.util.Properties properties)
properties
-
public static java.lang.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 |