Class ProcedureWALLoaderPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALLoaderPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
public class ProcedureWALLoaderPerformanceEvaluation
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
static int
static int
static int
static int
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
double
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
int
int
(package private) static byte[]
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
int
protected static final HBaseCommonTestingUtil
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
doWork()
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) private void
void
private void
storeRestart
(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader loader) void
private void
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
-
UTIL
-
DEFAULT_NUM_PROCS
-
NUM_PROCS_OPTION
-
DEFAULT_NUM_WALS
-
NUM_WALS_OPTION
-
DEFAULT_STATE_SIZE
-
STATE_SIZE_OPTION
-
DEFAULT_UPDATES_PER_PROC
-
UPDATES_PER_PROC_OPTION
-
DEFAULT_DELETE_PROCS_FRACTION
-
DELETE_PROCS_FRACTION_OPTION
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option DELETE_PROCS_FRACTION_OPTION -
numProcs
-
updatesPerProc
-
deleteProcsFraction
-
numWals
-
store
-
serializedState
-
-
Constructor Details
-
ProcedureWALLoaderPerformanceEvaluation
-
-
Method Details
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
setupConf
-
setUpProcedureStore
- Throws:
IOException
-
shuffleProcWriteSequence
- Returns:
- a list of shuffled integers which represent state of proc id. First occurrence of a number denotes insert state, consecutive occurrences denote update states, and -ve value denotes delete state.
-
writeWals
- Throws:
IOException
-
storeRestart
private void storeRestart(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader loader) throws IOException - Throws:
IOException
-
tearDownProcedureStore
-
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
main
- Throws:
IOException
-