Class ZKMainServer.HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain
java.lang.Object
org.apache.zookeeper.ZooKeeperMain
org.apache.hadoop.hbase.zookeeper.ZKMainServer.HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain
- Enclosing class:
- ZKMainServer
private static class ZKMainServer.HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain
extends org.apache.zookeeper.ZooKeeperMain
ZooKeeper 3.4.6 broke being able to pass commands on command line. See ZOOKEEPER-1897. This
class is a hack to restore this faclity.
-
Field Summary
Fields inherited from class org.apache.zookeeper.ZooKeeperMain
cl, commandCount, exitCode, history, host, printWatches, zk
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
Run the command-line args passed.Methods inherited from class org.apache.zookeeper.ZooKeeperMain
addToHistory, connectToZK, executeLine, getCommands, getPrintWatches, getPrompt, main, printMessage, processCmd, processZKCmd
-
Constructor Details
-
HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain
public HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(String[] args) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
Method Details
-
runCmdLine
Run the command-line args passed. Calls System.exit when done.- Throws:
IOException
- in case of a network failureInterruptedException
- if the ZooKeeper client closesorg.apache.zookeeper.cli.CliException
- if the ZooKeeper exception happens in cli command
-