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
@LimitedPrivate("Tools")
public class ScanPerformanceEvaluation
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
A simple performance evaluation tool for single client and MR scans and snapshot scans.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private static final String
private String
private String
private String
private String
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()
private org.apache.hadoop.hbase.client.Scan
getScan()
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) void
setConf
(org.apache.hadoop.conf.Configuration conf) protected void
testHdfsStreaming
(org.apache.hadoop.fs.Path filename) void
testScan()
void
void
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
-
Field Details
-
HBASE_COUNTER_GROUP_NAME
- See Also:
-
type
-
file
-
tablename
-
snapshotName
-
restoreDir
-
caching
-
-
Constructor Details
-
ScanPerformanceEvaluation
public ScanPerformanceEvaluation()
-
-
Method Details
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
- Overrides:
setConf
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
testHdfsStreaming
- Throws:
IOException
-
getScan
-
testScan
- Throws:
IOException
-
testSnapshotScan
- Throws:
IOException
-
testScanMapReduce
-
testSnapshotScanMapReduce
public void testSnapshotScanMapReduce() throws IOException, InterruptedException, ClassNotFoundException -
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-
main
- Throws:
Exception
-