org.apache.hadoop.hbase.zookeeper
Class HQuorumPeer

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.HQuorumPeer

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HQuorumPeer
extends Object

HBase's version of ZooKeeper's QuorumPeer. When HBase is set to manage ZooKeeper, this class is used to start up QuorumPeer instances. By doing things in here rather than directly calling to ZooKeeper, we have more control over the process. This class uses ZKConfig to parse the zoo.cfg and inject variables from HBase's site.xml configuration in.


Constructor Summary
HQuorumPeer()
           
 
Method Summary
static void main(String[] args)
          Parse ZooKeeper configuration from HBase 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

HQuorumPeer

public HQuorumPeer()
Method Detail

main

public static void main(String[] args)
Parse ZooKeeper configuration from HBase XML config and run a QuorumPeer.

Parameters:
args - String[] of command line arguments. Not used.


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.