@InterfaceAudience.LimitedPrivate(value="Tools") @InterfaceStability.Evolving public class HQuorumPeer extends Object
ZKConfig to parse the
zoo.cfg and inject variables from HBase's site.xml configuration in.| Constructor and Description |
|---|
HQuorumPeer() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
addressIsLocalHost(String address) |
static void |
main(String[] args)
Parse ZooKeeper configuration from HBase XML config and run a QuorumPeer.
|
private static void |
runZKServer(org.apache.zookeeper.server.quorum.QuorumPeerConfig zkConfig) |
(package private) static void |
writeMyID(Properties properties) |
public static void main(String[] args)
args - String[] of command line arguments. Not used.private static void runZKServer(org.apache.zookeeper.server.quorum.QuorumPeerConfig zkConfig)
throws UnknownHostException,
IOException
UnknownHostExceptionIOExceptionprivate static boolean addressIsLocalHost(String address)
static void writeMyID(Properties properties) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.