Class ZKMainServer

java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKMainServer

@LimitedPrivate("Tools") public class ZKMainServer extends Object
Tool for running ZookeeperMain from HBase by reading a ZooKeeper server from HBase XML configuration.
  • Field Details

  • Constructor Details

  • Method Details

    • parse

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

      private static boolean hasServer(String[] args)
      Parameters:
      args - the arguments to check
      Returns:
      True if argument strings have a '-server' in them.
    • hasCommandLineArguments

      private static boolean hasCommandLineArguments(String[] args)
      Parameters:
      args - the arguments to check for command-line arguments
      Returns:
      True if command-line arguments were passed.
    • main

      public static void main(String[] args) throws Exception
      Run the tool.
      Parameters:
      args - Command line arguments. First arg is path to zookeepers file.
      Throws:
      Exception