Package org.apache.hadoop.hbase
Class ScanPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.ScanPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
A simple performance evaluation tool for single client and MR scans and snapshot scans.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate static final Stringprivate Stringprivate Stringprivate Stringprivate StringFields 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 voidOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.protected intdoWork()The "main function" of the toolprivate ScangetScan()static voidprotected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) This method is called to process the options after they have been parsed.voidsetConf(org.apache.hadoop.conf.Configuration conf) protected voidtestHdfsStreaming(org.apache.hadoop.fs.Path filename) voidtestScan()voidvoidvoidMethods 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
-
Field Details
-
HBASE_COUNTER_GROUP_NAME
- See Also:
-
type
-
file
-
tablename
-
snapshotName
-
restoreDir
-
caching
-
-
Constructor Details
-
ScanPerformanceEvaluation
public ScanPerformanceEvaluation()
-
-
Method Details
-
setConf
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable- Overrides:
setConfin classAbstractHBaseTool
-
addOptions
Description copied from class:AbstractHBaseToolOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.- Specified by:
addOptionsin classAbstractHBaseTool
-
processOptions
Description copied from class:AbstractHBaseToolThis method is called to process the options after they have been parsed.- Specified by:
processOptionsin classAbstractHBaseTool
-
testHdfsStreaming
- Throws:
IOException
-
getScan
-
testScan
- Throws:
IOException
-
testSnapshotScan
- Throws:
IOException
-
testScanMapReduce
-
testSnapshotScanMapReduce
public void testSnapshotScanMapReduce() throws IOException, InterruptedException, ClassNotFoundException -
doWork
Description copied from class:AbstractHBaseToolThe "main function" of the tool- Specified by:
doWorkin classAbstractHBaseTool- Throws:
Exception
-
main
- Throws:
Exception
-