public class IntegrationTestReplication extends IntegrationTestBigLinkedList
IntegrationTestBigLinkedList
that creates a large circular
linked list in one cluster and verifies that the data is correct in a sink cluster. The test
handles creating the tables and schema and setting up the replication.Modifier and Type | Class and Description |
---|---|
protected class |
IntegrationTestReplication.ClusterID
Wrapper around an HBase ClusterID allowing us
to get admin connections and configurations for it
|
protected class |
IntegrationTestReplication.VerifyReplicationLoop
The main runner loop for the test.
|
Modifier and Type | Field and Description |
---|---|
protected int |
generateVerifyGap |
protected boolean |
noReplicationSetup |
protected int |
numIterations |
protected int |
numMappers |
protected long |
numNodes |
protected int |
numReducers |
protected String |
outputDir |
protected String |
sinkClusterIdString |
protected String |
sourceClusterIdString |
protected Integer |
width |
protected Integer |
wrapMultiplier |
COLUMN_CLIENT, COLUMN_COUNT, COLUMN_PREV, DEFAULT_TABLE_NAME, FAMILY_NAME, NO_KEY, NUM_SLAVES_BASE, otherArgs, TABLE_NAME_KEY, toRun, 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 |
---|
IntegrationTestReplication() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods. |
static void |
main(String[] args) |
protected void |
processOptions(CommandLine cmd)
This method is called to process the options after they have been parsed.
|
int |
runTestFromCommandLine() |
cleanUpCluster, getColumnFamilies, getTablename, setJobScannerConf, setUpCluster, testContinuousIngest
cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, processBaseOptions, setUp, setUpMonkey, startMonkey
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf
protected String sourceClusterIdString
protected String sinkClusterIdString
protected int numIterations
protected int numMappers
protected long numNodes
protected String outputDir
protected int numReducers
protected int generateVerifyGap
protected Integer width
protected Integer wrapMultiplier
protected boolean noReplicationSetup
protected void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class IntegrationTestBase
protected void processOptions(CommandLine cmd)
AbstractHBaseTool
processOptions
in class IntegrationTestBigLinkedList
public int runTestFromCommandLine() throws Exception
runTestFromCommandLine
in class IntegrationTestBigLinkedList
Exception