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 static 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.
|
IntegrationTestBigLinkedList.CINode, IntegrationTestBigLinkedList.Generator, IntegrationTestBigLinkedList.Loop, IntegrationTestBigLinkedList.Search, IntegrationTestBigLinkedList.Verify, IntegrationTestBigLinkedList.WalkerBase
Modifier and Type | Field and Description |
---|---|
private int |
DEFAULT_GENERATE_VERIFY_GAP |
private int |
DEFAULT_NUM_ITERATIONS |
private int |
DEFAULT_NUM_MAPPERS |
private int |
DEFAULT_NUM_NODES |
private int |
DEFAULT_NUM_REDUCERS |
private int |
DEFAULT_WIDTH |
private int |
DEFAULT_WRAP_MULTIPLIER |
private String |
DEST_CLUSTER_OPT |
private String |
GENERATE_VERIFY_GAP_OPT
The gap (in seconds) from when data is finished being generated at the source to when it can be
verified.
|
protected int |
generateVerifyGap |
private String |
ITERATIONS_OPT |
private String |
NO_REPLICATION_SETUP_OPT |
protected boolean |
noReplicationSetup |
private String |
NUM_MAPPERS_OPT |
private String |
NUM_NODES_OPT
The number of nodes in the test setup.
|
private String |
NUM_REDUCERS_OPT |
protected int |
numIterations |
protected int |
numMappers |
protected long |
numNodes |
protected int |
numReducers |
private String |
OUTPUT_DIR_OPT |
protected String |
outputDir |
protected String |
sinkClusterIdString |
private String |
SOURCE_CLUSTER_OPT |
protected String |
sourceClusterIdString |
protected Integer |
width |
private String |
WIDTH_OPT
The width of the linked list.
|
private String |
WRAP_MULTIPLIER_OPT
The number of rows after which the linked list points to the first row.
|
protected Integer |
wrapMultiplier |
COLUMN_CLIENT, COLUMN_COUNT, COLUMN_PREV, DEFAULT_TABLE_NAME, FAMILY_NAME, NO_KEY, NUM_SLAVES_BASE, otherArgs, TABLE_NAME_KEY, toRun
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util
Constructor and Description |
---|
IntegrationTestReplication() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions() |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
int |
runTestFromCommandLine() |
cleanUpCluster, getColumnFamilies, getTablename, getTableName, setJobScannerConf, setUpCluster, testContinuousIngest
cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkey
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
protected String sourceClusterIdString
protected String sinkClusterIdString
protected int numIterations
protected int numMappers
protected long numNodes
protected int numReducers
protected int generateVerifyGap
protected Integer wrapMultiplier
protected boolean noReplicationSetup
private final String SOURCE_CLUSTER_OPT
private final String DEST_CLUSTER_OPT
private final String ITERATIONS_OPT
private final String NUM_MAPPERS_OPT
private final String OUTPUT_DIR_OPT
private final String NUM_REDUCERS_OPT
private final String NO_REPLICATION_SETUP_OPT
private final String GENERATE_VERIFY_GAP_OPT
private final String WIDTH_OPT
IntegrationTestBigLinkedList
for more detailsprivate final String WRAP_MULTIPLIER_OPT
IntegrationTestBigLinkedList
for more detailsprivate final String NUM_NODES_OPT
IntegrationTestBigLinkedList
for more detailsprivate final int DEFAULT_NUM_MAPPERS
private final int DEFAULT_NUM_REDUCERS
private final int DEFAULT_NUM_ITERATIONS
private final int DEFAULT_GENERATE_VERIFY_GAP
private final int DEFAULT_WIDTH
private final int DEFAULT_WRAP_MULTIPLIER
private final int DEFAULT_NUM_NODES
public IntegrationTestReplication()
protected void addOptions()
addOptions
in class IntegrationTestBase
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class IntegrationTestBigLinkedList
public int runTestFromCommandLine() throws Exception
runTestFromCommandLine
in class IntegrationTestBigLinkedList
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.