Package org.apache.hadoop.hbase.test
Class IntegrationTestReplication
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.IntegrationTestBase
org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
org.apache.hadoop.hbase.test.IntegrationTestReplication
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
This is an integration test for replication. It is derived off
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.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Wrapper around an HBase ClusterID allowing us to get admin connections and configurations for itprotected class
The main runner loop for the test.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
IntegrationTestBigLinkedList.CINode, IntegrationTestBigLinkedList.Generator, IntegrationTestBigLinkedList.Loop, IntegrationTestBigLinkedList.Search, IntegrationTestBigLinkedList.Verify, IntegrationTestBigLinkedList.WalkerBase
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final int
private final int
private final int
private final int
private final int
private final String
private final String
The gap (in seconds) from when data is finished being generated at the source to when it can be verified.protected int
private final String
private final String
protected boolean
private final String
private final String
The number of nodes in the test setup.private final String
protected int
protected int
protected long
protected int
private final String
protected String
protected String
private final String
protected String
protected Integer
private final String
The width of the linked list.private final String
The number of rows after which the linked list points to the first row.protected Integer
Fields inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
COLUMN_CLIENT, COLUMN_COUNT, COLUMN_PREV, DEFAULT_TABLE_NAME, FAMILY_NAME, NO_KEY, NUM_SLAVES_BASE, otherArgs, TABLE_NAME_KEY, toRun
Fields inherited from class org.apache.hadoop.hbase.IntegrationTestBase
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util
Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) int
Methods inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
cleanUpCluster, getColumnFamilies, getTablename, getTableName, setJobScannerConf, setUpCluster, testContinuousIngest
Methods inherited from class org.apache.hadoop.hbase.IntegrationTestBase
cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkey
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
sourceClusterIdString
-
sinkClusterIdString
-
numIterations
-
numMappers
-
numNodes
-
outputDir
-
numReducers
-
generateVerifyGap
-
width
-
wrapMultiplier
-
noReplicationSetup
-
SOURCE_CLUSTER_OPT
- See Also:
-
DEST_CLUSTER_OPT
- See Also:
-
ITERATIONS_OPT
- See Also:
-
NUM_MAPPERS_OPT
- See Also:
-
OUTPUT_DIR_OPT
- See Also:
-
NUM_REDUCERS_OPT
- See Also:
-
NO_REPLICATION_SETUP_OPT
- See Also:
-
GENERATE_VERIFY_GAP_OPT
The gap (in seconds) from when data is finished being generated at the source to when it can be verified. This is the replication lag we are willing to tolerate- See Also:
-
WIDTH_OPT
The width of the linked list. SeeIntegrationTestBigLinkedList
for more details- See Also:
-
WRAP_MULTIPLIER_OPT
The number of rows after which the linked list points to the first row. SeeIntegrationTestBigLinkedList
for more details- See Also:
-
NUM_NODES_OPT
The number of nodes in the test setup. This has to be a multiple of WRAP_MULTIPLIER * WIDTH in order to ensure that the linked list can is complete. SeeIntegrationTestBigLinkedList
for more details- See Also:
-
DEFAULT_NUM_MAPPERS
- See Also:
-
DEFAULT_NUM_REDUCERS
- See Also:
-
DEFAULT_NUM_ITERATIONS
- See Also:
-
DEFAULT_GENERATE_VERIFY_GAP
- See Also:
-
DEFAULT_WIDTH
- See Also:
-
DEFAULT_WRAP_MULTIPLIER
- See Also:
-
DEFAULT_NUM_NODES
- See Also:
-
-
Constructor Details
-
IntegrationTestReplication
public IntegrationTestReplication()
-
-
Method Details
-
addOptions
- Overrides:
addOptions
in classIntegrationTestBase
-
processOptions
- Overrides:
processOptions
in classIntegrationTestBigLinkedList
-
runTestFromCommandLine
- Overrides:
runTestFromCommandLine
in classIntegrationTestBigLinkedList
- Throws:
Exception
-
main
- Throws:
Exception
-