@InterfaceAudience.Private public final class WALPerformanceEvaluation extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
WAL
.
See usage for this tool by running:
$ hbase org.apache.hadoop.hbase.wal.WALPerformanceEvaluation -h
Modifier and Type | Class and Description |
---|---|
(package private) class |
WALPerformanceEvaluation.WALPutBenchmark
Perform WAL.append() of Put object, for the number of iterations requested.
|
Modifier and Type | Field and Description |
---|---|
private com.codahale.metrics.Meter |
appendMeter |
(package private) static String |
FAMILY_PREFIX |
private int |
keySize |
private com.codahale.metrics.Histogram |
latencyHistogram |
private static org.slf4j.Logger |
LOG |
private com.codahale.metrics.MetricRegistry |
metrics |
private org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl |
mvcc |
private int |
numQualifiers |
(package private) static String |
QUALIFIER_PREFIX |
private com.codahale.metrics.Histogram |
syncCountHistogram |
private com.codahale.metrics.Histogram |
syncHistogram |
private com.codahale.metrics.Meter |
syncMeter |
(package private) static String |
TABLE_NAME |
private HBaseTestingUtility |
TEST_UTIL |
private int |
valueSize |
private Set<org.apache.hadoop.hbase.wal.WAL> |
walsListenedTo |
Constructor and Description |
---|
WALPerformanceEvaluation() |
Modifier and Type | Method and Description |
---|---|
private void |
cleanRegionRootDir(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dir) |
private void |
closeRegion(org.apache.hadoop.hbase.regionserver.HRegion region) |
private static org.apache.hadoop.hbase.client.TableDescriptor |
createHTableDescriptor(int regionNum,
int numFamilies) |
(package private) static int |
innerMain(org.apache.hadoop.conf.Configuration c,
String[] args)
The guts of the
main(java.lang.String[]) method. |
private static void |
logBenchmarkResult(String testName,
long numTests,
long totalTime) |
static void |
main(String[] args) |
private org.apache.hadoop.hbase.regionserver.HRegion |
openRegion(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dir,
org.apache.hadoop.hbase.client.TableDescriptor htd,
org.apache.hadoop.hbase.wal.WALFactory wals,
long whenToRoll,
org.apache.hadoop.hbase.regionserver.LogRoller roller) |
private void |
printUsageAndExit() |
int |
run(String[] args) |
private long |
runBenchmark(Runnable[] runnable,
int numThreads) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
private org.apache.hadoop.hbase.client.Put |
setupPut(Random rand,
byte[] key,
byte[] value,
int numFamilies) |
private long |
verify(org.apache.hadoop.hbase.wal.WALFactory wals,
org.apache.hadoop.fs.Path wal,
boolean verbose)
Verify the content of the WAL file.
|
private static final org.slf4j.Logger LOG
private final com.codahale.metrics.MetricRegistry metrics
private final com.codahale.metrics.Meter syncMeter
private final com.codahale.metrics.Histogram syncHistogram
private final com.codahale.metrics.Histogram syncCountHistogram
private final com.codahale.metrics.Meter appendMeter
private final com.codahale.metrics.Histogram latencyHistogram
private final org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc
private HBaseTestingUtility TEST_UTIL
static final String TABLE_NAME
static final String QUALIFIER_PREFIX
static final String FAMILY_PREFIX
private int numQualifiers
private int valueSize
private int keySize
private final Set<org.apache.hadoop.hbase.wal.WAL> walsListenedTo
public WALPerformanceEvaluation()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.conf.Configured
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
private static org.apache.hadoop.hbase.client.TableDescriptor createHTableDescriptor(int regionNum, int numFamilies)
private long verify(org.apache.hadoop.hbase.wal.WALFactory wals, org.apache.hadoop.fs.Path wal, boolean verbose) throws IOException
wals
- may not be nullwal
- IOException
private static void logBenchmarkResult(String testName, long numTests, long totalTime)
private void printUsageAndExit()
private org.apache.hadoop.hbase.regionserver.HRegion openRegion(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dir, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.wal.WALFactory wals, long whenToRoll, org.apache.hadoop.hbase.regionserver.LogRoller roller) throws IOException
IOException
private void closeRegion(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException
IOException
private void cleanRegionRootDir(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dir) throws IOException
IOException
private org.apache.hadoop.hbase.client.Put setupPut(Random rand, byte[] key, byte[] value, int numFamilies)
private long runBenchmark(Runnable[] runnable, int numThreads) throws InterruptedException
InterruptedException
static int innerMain(org.apache.hadoop.conf.Configuration c, String[] args) throws Exception
main(java.lang.String[])
method.
Call this method to avoid the main(String[])
System.exit.args
- Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.