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, startMonkey
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, processOldArgs, run, setConf
private 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 IntegrationTestBase
Exception
public void cleanUpCluster() throws Exception
cleanUpCluster
in class IntegrationTestBase
Exception
public 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
Exception
protected 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
Exception
static SortedSet<byte[]> readKeysToSearch(org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOException
InterruptedException
private static SortedSet<byte[]> readFileToSearch(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.FileStatus keyFileStatus, SortedSet<byte[]> result) throws IOException, InterruptedException
IOException
InterruptedException
private static void setJobScannerConf(org.apache.hadoop.mapreduce.Job job)
public org.apache.hadoop.fs.Path getTestDir(String testName, String subdir) throws IOException
IOException
public void testLoadAndVerify() throws Exception
Exception
public void printUsage()
printUsage
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
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
protected Set<String> getColumnFamilies()
IntegrationTestBase
getColumnFamilies
in class IntegrationTestBase
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.