@InterfaceAudience.LimitedPrivate(value="Tools") public class PerformanceEvaluation extends Configured
PerformanceEvaluation --help
to obtain usage.
This class sets up and runs the evaluation programs described in Section 7, Performance Evaluation, of the Bigtable paper, pages 8-10.
By default, runs as a mapreduce job where each mapper runs a single test
client. Can also run as a non-mapreduce, multithreaded application by
specifying --nomapred
. Each client does about 1GB of data, unless
specified otherwise.
Modifier and Type | Class and Description |
---|---|
protected static class |
PerformanceEvaluation.Counter
Enum for map metrics.
|
static class |
PerformanceEvaluation.EvaluationMapTask
MapReduce job that runs a performance evaluation client in each map task.
|
protected static class |
PerformanceEvaluation.RunResult |
Modifier and Type | Field and Description |
---|---|
static byte[] |
COLUMN_ZERO |
static int |
DEFAULT_VALUE_LENGTH |
static byte[] |
FAMILY_NAME |
protected static Log |
LOG |
static byte[] |
QUALIFIER_NAME |
static int |
ROW_LENGTH |
static String |
TABLE_NAME |
Constructor and Description |
---|
PerformanceEvaluation(Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addCommandDescriptor(Class<? extends org.apache.hadoop.hbase.PerformanceEvaluation.Test> cmdClass,
String name,
String description) |
static byte[] |
format(int number) |
static byte[] |
generateData(Random r,
int length) |
static byte[] |
generateValue(Random r)
Deprecated.
Use
generateData(java.util.Random, int) instead. |
protected static byte[][] |
getSplits(org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions opts)
generates splits based on total number of rows and specified split regions
|
protected static HTableDescriptor |
getTableDescriptor(org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions opts)
Create an HTableDescriptor from provided TestOptions.
|
static void |
main(String[] args) |
protected void |
printUsage() |
protected static void |
printUsage(String message) |
protected static void |
printUsage(String className,
String message) |
protected static void |
printUsageAndExit(String message,
int exitCode) |
int |
run(String[] args) |
protected static final Log LOG
public static final String TABLE_NAME
public static final byte[] FAMILY_NAME
public static final byte[] COLUMN_ZERO
public static final byte[] QUALIFIER_NAME
public static final int DEFAULT_VALUE_LENGTH
public static final int ROW_LENGTH
public PerformanceEvaluation(Configuration conf)
conf
- Configuration objectprotected static void addCommandDescriptor(Class<? extends org.apache.hadoop.hbase.PerformanceEvaluation.Test> cmdClass, String name, String description)
protected static HTableDescriptor getTableDescriptor(org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions opts)
protected static byte[][] getSplits(org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions opts)
public static byte[] format(int number)
public static byte[] generateData(Random r, int length)
@Deprecated public static byte[] generateValue(Random r)
generateData(java.util.Random, int)
instead.protected void printUsage()
protected static void printUsage(String message)
protected static void printUsageAndExit(String message, int exitCode)