Class RestartMetaTest

java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.RestartMetaTest
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class RestartMetaTest extends org.apache.hadoop.hbase.util.AbstractHBaseTool
A command-line tool that spins up a local process-based cluster, loads some data, restarts the regionserver holding hbase:meta, and verifies that the cluster recovers.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
    The number of region servers used if not specified
    private static final org.slf4j.Logger
     
    private static final int
     
    private int
    The actual number of region servers
    private static final String
     
    private static final int
    The number of seconds to sleep after loading the data
    private static org.apache.hadoop.hbase.TableName
    Table name for the test

    Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected int
     
    private void
    Loads data into the table using the multi-threaded writer.
    static void
    main(String[] args)
     
    protected void
    processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
     

    Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • loadData

      private void loadData() throws IOException
      Loads data into the table using the multi-threaded writer.
      Throws:
      IOException
    • doWork

      protected int doWork() throws Exception
      Specified by:
      doWork in class org.apache.hadoop.hbase.util.AbstractHBaseTool
      Throws:
      Exception
    • addOptions

      protected void addOptions()
      Specified by:
      addOptions in class org.apache.hadoop.hbase.util.AbstractHBaseTool
    • processOptions

      protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
      Specified by:
      processOptions in class org.apache.hadoop.hbase.util.AbstractHBaseTool
    • main

      public static void main(String[] args)