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
Modifier and TypeFieldDescriptionprivate static final int
The number of region servers used if not specifiedprivate static final org.slf4j.Logger
private static final int
private int
The actual number of region serversprivate static final String
private static final int
The number of seconds to sleep after loading the dataprivate static org.apache.hadoop.hbase.TableName
Table 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
doWork()
private void
loadData()
Loads data into the table using the multi-threaded writer.static void
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
-
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:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
main
-