Package org.apache.hadoop.hbase
Class StripeCompactionsPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.StripeCompactionsPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
@Private
public class StripeCompactionsPerformanceEvaluation
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
A perf test which does large data ingestion using stripe compactions and regular compactions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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 byte[]private org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorprivate static final Stringprivate static final Stringprivate Longprivate intprivate static final Stringprivate static final org.slf4j.Loggerprivate static final intprivate static final Stringprivate longprivate static final Stringprivate intprivate static final Stringprivate static final Stringprivate static final Stringprivate Longprivate Longprivate static final org.apache.hadoop.hbase.TableNameprotected IntegrationTestingUtilityprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate longprivate intFields 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 voidprivate org.apache.hadoop.hbase.client.TableDescriptorBuildercreateHtd(boolean isStripe) private voidcreateTable(boolean isStripe) private voidcreateTable(org.apache.hadoop.hbase.client.TableDescriptorBuilder builder) protected voidprotected intdoWork()org.apache.hadoop.conf.ConfigurationgetConf()private LonggetLongOrNull(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, String option) protected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) private voidrunOneTest(String description, org.apache.hadoop.conf.Configuration conf) private voidsetUp()private static voidprivate voidtearDown()Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
LOG
-
TABLE_NAME
-
COLUMN_FAMILY
-
MIN_NUM_SERVERS
- See Also:
-
DATAGEN_KEY
- See Also:
-
ITERATIONS_KEY
- See Also:
-
PRELOAD_COUNT_KEY
- See Also:
-
WRITE_COUNT_KEY
- See Also:
-
WRITE_THREADS_KEY
- See Also:
-
READ_THREADS_KEY
- See Also:
-
INITIAL_STRIPE_COUNT_KEY
- See Also:
-
SPLIT_SIZE_KEY
- See Also:
-
SPLIT_PARTS_KEY
- See Also:
-
VALUE_SIZE_KEY
- See Also:
-
SEQ_SHARDS_PER_SERVER_KEY
- See Also:
-
dataGen
-
iterationCount
-
preloadKeys
-
writeKeys
-
writeThreads
-
readThreads
-
initialStripeCount
-
splitSize
-
splitParts
-
VALUE_SIZE_DEFAULT
- See Also:
-
util
-
-
Constructor Details
-
StripeCompactionsPerformanceEvaluation
-
-
Method Details
-
addOptions
- Specified by:
addOptionsin classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptionsin classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
getLongOrNull
private Long getLongOrNull(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, String option) -
getConf
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable- Overrides:
getConfin classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
doWork
- Specified by:
doWorkin classorg.apache.hadoop.hbase.util.AbstractHBaseTool- Throws:
Exception
-
setUp
- Throws:
Exception
-
deleteTable
- Throws:
Exception
-
createTable
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
runOneTest
private void runOneTest(String description, org.apache.hadoop.conf.Configuration conf) throws Exception - Throws:
Exception
-
status
-
createHtd
private org.apache.hadoop.hbase.client.TableDescriptorBuilder createHtd(boolean isStripe) throws Exception - Throws:
Exception
-
createTable
private void createTable(org.apache.hadoop.hbase.client.TableDescriptorBuilder builder) throws Exception - Throws:
Exception
-