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
Nested ClassesModifier and TypeClassDescriptionprotected static classWrapper around an HBase ClusterID allowing us to get admin connections and configurations for itprotected classThe 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.WalkerBaseNested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final Stringprivate final StringThe gap (in seconds) from when data is finished being generated at the source to when it can be verified.protected intprivate final Stringprivate final Stringprotected booleanprivate final Stringprivate final StringThe number of nodes in the test setup.private final Stringprotected intprotected intprotected longprotected intprivate final Stringprotected Stringprotected Stringprivate final Stringprotected Stringprotected Integerprivate final StringThe width of the linked list.private final StringThe number of rows after which the linked list points to the first row.protected IntegerFields 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, toRunFields inherited from class org.apache.hadoop.hbase.IntegrationTestBase
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, utilFields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic voidprotected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) intMethods inherited from class org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList
cleanUpCluster, getColumnFamilies, getTablename, getTableName, setJobScannerConf, setUpCluster, testContinuousIngestMethods inherited from class org.apache.hadoop.hbase.IntegrationTestBase
cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkeyMethods 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. SeeIntegrationTestBigLinkedListfor more details- See Also:
-
WRAP_MULTIPLIER_OPT
The number of rows after which the linked list points to the first row. SeeIntegrationTestBigLinkedListfor 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. SeeIntegrationTestBigLinkedListfor 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:
addOptionsin classIntegrationTestBase
-
processOptions
- Overrides:
processOptionsin classIntegrationTestBigLinkedList
-
runTestFromCommandLine
- Overrides:
runTestFromCommandLinein classIntegrationTestBigLinkedList- Throws:
Exception
-
main
- Throws:
Exception
-