public class IntegrationTestBulkLoad extends IntegrationTestBase
Modifier and Type | Class and Description |
---|---|
static class |
IntegrationTestBulkLoad.CompositeKeyComparator
Comparator used to order linkKeys so that they are passed to a reducer in order.
|
static class |
IntegrationTestBulkLoad.EmptySplit |
static class |
IntegrationTestBulkLoad.FixedRecordReader<K,V> |
static class |
IntegrationTestBulkLoad.ITBulkLoadInputFormat |
static class |
IntegrationTestBulkLoad.LinkChain
Writable used as the value emitted from a pass over the hbase table.
|
static class |
IntegrationTestBulkLoad.LinkedListCheckingMapper
Mapper to pass over the table.
|
static class |
IntegrationTestBulkLoad.LinkedListCheckingReducer
Class that does the actual checking of the links.
|
static class |
IntegrationTestBulkLoad.LinkedListCreationMapper
Mapper that creates a linked list of KeyValues.
|
static class |
IntegrationTestBulkLoad.LinkKey
Writable class used as the key to group links in the linked list.
|
static class |
IntegrationTestBulkLoad.NaturalKeyGroupingComparator
Comparator used to figure out if a linkKey should be grouped together.
|
static class |
IntegrationTestBulkLoad.NaturalKeyPartitioner
Class to figure out what partition to send a link in the chain to.
|
static class |
IntegrationTestBulkLoad.SlowMeCoproScanOperations |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
CHAIN_FAM |
private static int |
CHAIN_LENGTH |
private static String |
CHAIN_LENGTH_KEY |
private boolean |
check |
private static byte[] |
DATA_FAM |
private boolean |
load |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_IMPORT_ROUNDS |
private static String |
NUM_IMPORT_ROUNDS_KEY |
private static int |
NUM_MAPS |
private static String |
NUM_MAPS_KEY |
private static int |
NUM_REPLICA_COUNT_DEFAULT |
private static String |
NUM_REPLICA_COUNT_KEY |
private static String |
OPT_CHECK |
private static String |
OPT_LOAD |
private static String |
ROUND_NUM_KEY |
private static byte[] |
SORT_FAM |
private static String |
TABLE_NAME |
private static String |
TABLE_NAME_KEY |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util
Constructor and Description |
---|
IntegrationTestBulkLoad() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions() |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
private byte[][] |
getSplits(int numRegions) |
org.apache.hadoop.hbase.TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
static org.apache.hadoop.hbase.TableName |
getTableName(org.apache.hadoop.conf.Configuration conf) |
private void |
installSlowingCoproc()
Modify table
getTableName() to carry IntegrationTestBulkLoad.SlowMeCoproScanOperations . |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
private void |
runCheck()
After adding data to the table start a mr job to
|
private void |
runCheckWithRetry() |
private void |
runLinkedListMRJob(int iteration) |
void |
runLoad() |
int |
runTestFromCommandLine() |
void |
setUpCluster() |
private void |
setupTable() |
void |
testBulkLoad() |
cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkey
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
private static final org.slf4j.Logger LOG
private static final byte[] CHAIN_FAM
private static final byte[] SORT_FAM
private static final byte[] DATA_FAM
private static String CHAIN_LENGTH_KEY
private static int CHAIN_LENGTH
private static String NUM_MAPS_KEY
private static int NUM_MAPS
private static String NUM_IMPORT_ROUNDS_KEY
private static int NUM_IMPORT_ROUNDS
private static String ROUND_NUM_KEY
private static String TABLE_NAME_KEY
private static String TABLE_NAME
private static String NUM_REPLICA_COUNT_KEY
private static int NUM_REPLICA_COUNT_DEFAULT
private static final String OPT_LOAD
private static final String OPT_CHECK
private boolean load
private boolean check
public IntegrationTestBulkLoad()
private void installSlowingCoproc() throws IOException, InterruptedException
getTableName()
to carry IntegrationTestBulkLoad.SlowMeCoproScanOperations
.IOException
InterruptedException
public void testBulkLoad() throws Exception
Exception
private byte[][] getSplits(int numRegions)
private void setupTable() throws IOException, InterruptedException
IOException
InterruptedException
private void runLinkedListMRJob(int iteration) throws Exception
Exception
private void runCheckWithRetry() throws IOException, ClassNotFoundException, InterruptedException
private void runCheck() throws IOException, ClassNotFoundException, InterruptedException
public void setUpCluster() throws Exception
setUpCluster
in class IntegrationTestBase
Exception
protected void addOptions()
addOptions
in class IntegrationTestBase
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class IntegrationTestBase
public int runTestFromCommandLine() throws Exception
runTestFromCommandLine
in class IntegrationTestBase
Exception
public org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBase
getTablename
in class IntegrationTestBase
public static org.apache.hadoop.hbase.TableName getTableName(org.apache.hadoop.conf.Configuration conf)
protected Set<String> getColumnFamilies()
IntegrationTestBase
getColumnFamilies
in class IntegrationTestBase
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.