Class WALPerformanceEvaluation

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.wal.WALPerformanceEvaluation
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

@Private public final class WALPerformanceEvaluation extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
This class runs performance benchmarks for WAL. See usage for this tool by running: $ hbase org.apache.hadoop.hbase.wal.WALPerformanceEvaluation -h
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) class 
    Perform WAL.append() of Put object, for the number of iterations requested.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.codahale.metrics.Meter
     
    (package private) static final String
     
    private int
     
    private final com.codahale.metrics.Histogram
     
    private static final org.slf4j.Logger
     
    private final com.codahale.metrics.MetricRegistry
     
    private final org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl
     
    private int
     
    (package private) static final String
     
    private final com.codahale.metrics.Histogram
     
    private final com.codahale.metrics.Histogram
     
    private final com.codahale.metrics.Meter
     
    (package private) static final String
     
     
    private int
     
    private final Set<org.apache.hadoop.hbase.wal.WAL>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
     
    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.

    Methods inherited from class org.apache.hadoop.conf.Configured

    getConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.conf.Configurable

    getConf