Package org.apache.hadoop.hbase.util
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
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
FieldsModifier and TypeFieldDescriptionprivate static final intThe number of region servers used if not specifiedprivate static final org.slf4j.Loggerprivate static final intprivate intThe actual number of region serversprivate static final Stringprivate static final intThe number of seconds to sleep after loading the dataprivate static org.apache.hadoop.hbase.TableNameTable name for the testFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intdoWork()private voidloadData()Loads data into the table using the multi-threaded writer.static voidprotected voidprocessOptions(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
-
Field Details
-
LOG
-
DEFAULT_NUM_RS
The number of region servers used if not specified- See Also:
-
TABLE_NAME
Table name for the test -
SLEEP_SEC_AFTER_DATA_LOAD
The number of seconds to sleep after loading the data- See Also:
-
numRegionServers
The actual number of region servers -
OPT_NUM_RS
- See Also:
-
NUM_DATANODES
- See Also:
-
-
Constructor Details
-
RestartMetaTest
public RestartMetaTest()
-
-
Method Details
-
loadData
Loads data into the table using the multi-threaded writer.- Throws:
IOException
-
doWork
- Specified by:
doWorkin classorg.apache.hadoop.hbase.util.AbstractHBaseTool- Throws:
Exception
-
addOptions
- Specified by:
addOptionsin classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptionsin classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
main
-