public class IntegrationTestLoadAndVerify extends IntegrationTestBase
| Modifier and Type | Class and Description |
|---|---|
private static class |
IntegrationTestLoadAndVerify.Counters |
static class |
IntegrationTestLoadAndVerify.LoadMapper |
static class |
IntegrationTestLoadAndVerify.VerifyMapper |
static class |
IntegrationTestLoadAndVerify.VerifyReducer |
static class |
IntegrationTestLoadAndVerify.WALSearcher
Tool to search missing rows in WALs and hfiles.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
FOUND_GROUP_KEY |
private String |
keysDir |
private static org.slf4j.Logger |
LOG |
private static int |
MISSING_ROWS_TO_LOG |
private static int |
NUM_BACKREFS_DEFAULT |
private static String |
NUM_BACKREFS_KEY |
private static int |
NUM_MAP_TASKS_DEFAULT |
private static String |
NUM_MAP_TASKS_KEY |
private static int |
NUM_REDUCE_TASKS_DEFAULT |
private static String |
NUM_REDUCE_TASKS_KEY |
private static long |
NUM_TO_WRITE_DEFAULT |
private static String |
NUM_TO_WRITE_KEY |
private static int |
SCANNER_CACHING |
(package private) static String |
SEARCHER_INPUTDIR_KEY |
private static String |
TABLE_NAME_DEFAULT |
private static String |
TABLE_NAME_KEY |
private static byte[] |
TEST_FAMILY |
private static String |
TEST_NAME |
private static byte[] |
TEST_QUALIFIER |
private String |
toRun |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util| Constructor and Description |
|---|
IntegrationTestLoadAndVerify() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpCluster() |
protected org.apache.hadoop.mapreduce.Job |
doLoad(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.HTableDescriptor htd) |
private int |
doSearch(String keysDir) |
protected void |
doVerify(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.HTableDescriptor htd) |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
org.apache.hadoop.hbase.TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
org.apache.hadoop.fs.Path |
getTestDir(String testName,
String subdir) |
static void |
main(String[] argv) |
void |
printUsage() |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
private static SortedSet<byte[]> |
readFileToSearch(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus keyFileStatus,
SortedSet<byte[]> result) |
(package private) static SortedSet<byte[]> |
readKeysToSearch(org.apache.hadoop.conf.Configuration conf) |
int |
runTestFromCommandLine() |
private static void |
setJobScannerConf(org.apache.hadoop.mapreduce.Job job) |
protected void |
setMapperClass(org.apache.hadoop.mapreduce.Job job) |
void |
setUpCluster() |
static long |
swapLong(long value)
Converts a "long" value between endian systems.
|
void |
testLoadAndVerify() |
addOptions, cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, setUp, setUpMonkey, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, processOldArgs, run, setConfprivate static final org.slf4j.Logger LOG
private static final String TEST_NAME
private static final byte[] TEST_FAMILY
private static final byte[] TEST_QUALIFIER
private static final String NUM_TO_WRITE_KEY
private static final long NUM_TO_WRITE_DEFAULT
private static final String TABLE_NAME_KEY
private static final String TABLE_NAME_DEFAULT
private static final String NUM_BACKREFS_KEY
private static final int NUM_BACKREFS_DEFAULT
private static final String NUM_MAP_TASKS_KEY
private static final String NUM_REDUCE_TASKS_KEY
private static final int NUM_MAP_TASKS_DEFAULT
private static final int NUM_REDUCE_TASKS_DEFAULT
private static final int SCANNER_CACHING
private static final int MISSING_ROWS_TO_LOG
static final String FOUND_GROUP_KEY
static final String SEARCHER_INPUTDIR_KEY
public IntegrationTestLoadAndVerify()
public void setUpCluster() throws Exception
setUpCluster in class IntegrationTestBaseExceptionpublic void cleanUpCluster() throws Exception
cleanUpCluster in class IntegrationTestBaseExceptionpublic static long swapLong(long value)
value - value to convertprotected org.apache.hadoop.mapreduce.Job doLoad(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.HTableDescriptor htd) throws Exception
Exceptionprotected void setMapperClass(org.apache.hadoop.mapreduce.Job job)
protected void doVerify(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.HTableDescriptor htd) throws Exception
Exceptionstatic SortedSet<byte[]> readKeysToSearch(org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static SortedSet<byte[]> readFileToSearch(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.FileStatus keyFileStatus, SortedSet<byte[]> result) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static void setJobScannerConf(org.apache.hadoop.mapreduce.Job job)
public org.apache.hadoop.fs.Path getTestDir(String testName, String subdir) throws IOException
IOExceptionpublic void testLoadAndVerify() throws Exception
Exceptionpublic void printUsage()
printUsage in class org.apache.hadoop.hbase.util.AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class IntegrationTestBasepublic int runTestFromCommandLine() throws Exception
runTestFromCommandLine in class IntegrationTestBaseExceptionpublic org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBasegetTablename in class IntegrationTestBaseprotected Set<String> getColumnFamilies()
IntegrationTestBasegetColumnFamilies in class IntegrationTestBaseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.