public class IntegrationTestIngest extends IntegrationTestBase
LoadTestTool
to write and verify some data.Modifier and Type | Field and Description |
---|---|
protected HBaseCluster |
cluster |
protected static long |
DEFAULT_NUM_KEYS_PER_SERVER |
protected static int |
DEFAULT_NUM_READ_THREADS |
protected static int |
DEFAULT_NUM_WRITE_THREADS |
protected static long |
DEFAULT_RUN_TIME |
static char |
HIPHEN |
protected static long |
JUNIT_RUN_TIME |
protected String[] |
LOAD_TEST_TOOL_INIT_ARGS |
protected LoadTestTool |
loadTool |
protected static org.slf4j.Logger |
LOG |
protected static String |
NUM_KEYS_PER_SERVER_KEY |
protected static String |
NUM_READ_THREADS_KEY |
protected static String |
NUM_WRITE_THREADS_KEY |
protected static String |
RUN_TIME_KEY
A soft limit on how long we should run
|
private static int |
SERVER_COUNT |
protected IntegrationTestingUtility |
util |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp
Constructor and Description |
---|
IntegrationTestIngest() |
Modifier and Type | Method and Description |
---|---|
private void |
deleteTableIfNecessary() |
protected String[] |
getArgsForLoadTestTool(String mode,
String modeSpecificArg,
long startKey,
long numKeys) |
protected String[] |
getArgsForLoadTestToolInitTable() |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
private String |
getColumnFamiliesAsString() |
protected int |
getMinServerCount() |
protected long |
getNumKeys(long keysPerServer)
Estimates a data size based on the cluster size
|
org.apache.hadoop.hbase.TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
protected void |
initTable() |
protected void |
internalRunIngestTest(long runTime) |
static void |
main(String[] args) |
protected void |
runIngestTest(long defaultRunTime,
long keysPerServerPerIter,
int colsPerKey,
int recordSize,
int writeThreads,
int readThreads) |
int |
runTestFromCommandLine() |
void |
setUpCluster() |
void |
testIngest() |
addOptions, cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkey
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
public static final char HIPHEN
private static final int SERVER_COUNT
protected static final long DEFAULT_RUN_TIME
protected static final long JUNIT_RUN_TIME
protected static final String RUN_TIME_KEY
protected static final String NUM_KEYS_PER_SERVER_KEY
protected static final long DEFAULT_NUM_KEYS_PER_SERVER
protected static final String NUM_WRITE_THREADS_KEY
protected static final int DEFAULT_NUM_WRITE_THREADS
protected static final String NUM_READ_THREADS_KEY
protected static final int DEFAULT_NUM_READ_THREADS
protected static final org.slf4j.Logger LOG
protected IntegrationTestingUtility util
protected HBaseCluster cluster
protected LoadTestTool loadTool
protected String[] LOAD_TEST_TOOL_INIT_ARGS
public IntegrationTestIngest()
public void setUpCluster() throws Exception
setUpCluster
in class IntegrationTestBase
Exception
protected int getMinServerCount()
protected void initTable() throws IOException
IOException
public int runTestFromCommandLine() throws Exception
runTestFromCommandLine
in class IntegrationTestBase
Exception
public void testIngest() throws Exception
Exception
protected void internalRunIngestTest(long runTime) throws Exception
Exception
public org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBase
getTablename
in class IntegrationTestBase
protected Set<String> getColumnFamilies()
IntegrationTestBase
getColumnFamilies
in class IntegrationTestBase
private void deleteTableIfNecessary() throws IOException
IOException
protected void runIngestTest(long defaultRunTime, long keysPerServerPerIter, int colsPerKey, int recordSize, int writeThreads, int readThreads) throws Exception
Exception
protected String[] getArgsForLoadTestToolInitTable()
protected String[] getArgsForLoadTestTool(String mode, String modeSpecificArg, long startKey, long numKeys)
private String getColumnFamiliesAsString()
protected long getNumKeys(long keysPerServer) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.