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 Log |
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
|
protected IntegrationTestingUtility |
util |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS
Constructor and Description |
---|
IntegrationTestIngest() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getArgsForLoadTestTool(String mode,
String modeSpecificArg,
long startKey,
long numKeys) |
protected String[] |
getArgsForLoadTestToolInitTable() |
protected Set<String> |
getColumnFamilies() |
protected int |
getMinServerCount() |
protected long |
getNumKeys(long keysPerServer)
Estimates a data size based on the cluster size
|
TableName |
getTablename() |
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, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkey
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf
public static final char HIPHEN
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 Log LOG
protected IntegrationTestingUtility util
protected HBaseCluster cluster
protected LoadTestTool loadTool
protected String[] LOAD_TEST_TOOL_INIT_ARGS
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
protected void internalRunIngestTest(long runTime) throws Exception
Exception
public TableName getTablename()
getTablename
in class IntegrationTestBase
protected Set<String> getColumnFamilies()
getColumnFamilies
in class IntegrationTestBase
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)
protected long getNumKeys(long keysPerServer) throws IOException
IOException