org.apache.hadoop.hbase.zookeeper
Class ZooKeeperMainServerArg

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

public class ZooKeeperMainServerArg
extends Object

Tool for reading a ZooKeeper server from HBase XML configuration producing the '-server host:port' argument to pass ZooKeeperMain. This program emits either '-server HOST:PORT" where HOST is one of the zk ensemble members plus zk client port OR it emits '' if no zk servers found (Yes, it emits '-server' too).


Constructor Summary
ZooKeeperMainServerArg()
           
 
Method Summary
static void main(String[] args)
          Run the tool.
 String parse(org.apache.hadoop.conf.Configuration c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperMainServerArg

public ZooKeeperMainServerArg()
Method Detail

parse

public String parse(org.apache.hadoop.conf.Configuration c)

main

public static void main(String[] args)
Run the tool.

Parameters:
args - Command line arguments. First arg is path to zookeepers file.


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