public class IntegrationTestMobCompaction extends IntegrationTestBase
Sample usage:
hbase org.apache.hadoop.hbase.IntegrationTestMobCompaction -Dservers=10 -Drows=1000000
-Dfailprob=0.2
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
IntegrationTestMobCompaction.CleanMobAndArchive |
(package private) static class |
IntegrationTestMobCompaction.MajorCompaction |
(package private) class |
IntegrationTestMobCompaction.WriteData |
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
private static org.apache.hadoop.hbase.mob.MobFileCleanerChore |
chore |
private static org.apache.hadoop.conf.Configuration |
conf |
protected static double |
DEFAULT_FAILURE_PROB |
protected static int |
DEFAULT_REGIONSERVER_COUNT |
protected static int |
DEFAULT_ROWS_COUNT |
protected static String |
FAILURE_PROB_KEY |
protected static double |
failureProb |
protected static byte[] |
fam |
protected static String |
famStr |
private static org.apache.hadoop.hbase.HColumnDescriptor |
hcd |
private static org.apache.hadoop.hbase.HTableDescriptor |
hdt |
protected static org.slf4j.Logger |
LOG |
protected static long |
mobLen |
protected static byte[] |
mobVal |
protected static byte[] |
qualifier |
protected static String |
REGIONSERVER_COUNT_KEY |
protected static int |
regionServerCount |
protected static String |
ROWS_COUNT_KEY |
protected static long |
rowsToLoad |
private static boolean |
run |
private static org.apache.hadoop.hbase.client.Table |
table |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util| Constructor and Description |
|---|
IntegrationTestMobCompaction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions() |
private void |
createTestTable() |
private void |
deleteTablesIfAny() |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
private long |
getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
String family) |
org.apache.hadoop.hbase.TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
private static void |
initConf(org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args) |
void |
printStats(long loaded) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
int |
runTestFromCommandLine()
Returns status of CLI execution
|
private void |
scanTable() |
void |
setUp() |
void |
setUpCluster() |
void |
setUpMonkey() |
void |
tearDown() |
void |
testMobCompaction() |
cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprotected static final org.slf4j.Logger LOG
protected static final String REGIONSERVER_COUNT_KEY
protected static final String ROWS_COUNT_KEY
protected static final String FAILURE_PROB_KEY
protected static final int DEFAULT_REGIONSERVER_COUNT
protected static final int DEFAULT_ROWS_COUNT
protected static final double DEFAULT_FAILURE_PROB
protected static int regionServerCount
protected static long rowsToLoad
protected static double failureProb
protected static byte[] fam
protected static byte[] qualifier
protected static long mobLen
protected static byte[] mobVal
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.HTableDescriptor hdt
private static org.apache.hadoop.hbase.HColumnDescriptor hcd
private static org.apache.hadoop.hbase.client.Admin admin
private static org.apache.hadoop.hbase.client.Table table
private static org.apache.hadoop.hbase.mob.MobFileCleanerChore chore
private static volatile boolean run
public IntegrationTestMobCompaction()
public void setUp() throws Exception
setUp in class IntegrationTestBaseExceptionprivate void createTestTable() throws IOException
IOExceptionpublic void tearDown() throws IOException
IOExceptionpublic void setUpMonkey() throws Exception
setUpMonkey in class IntegrationTestBaseExceptionprivate void deleteTablesIfAny() throws IOException
IOExceptionpublic void setUpCluster() throws Exception
setUpCluster in class IntegrationTestBaseExceptionpublic int runTestFromCommandLine() throws Exception
runTestFromCommandLine in class IntegrationTestBaseExceptionpublic org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBasegetTablename in class IntegrationTestBaseprotected Set<String> getColumnFamilies()
IntegrationTestBasegetColumnFamilies in class IntegrationTestBaseprotected void addOptions()
addOptions in class IntegrationTestBaseprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class IntegrationTestBaseprivate static void initConf(org.apache.hadoop.conf.Configuration conf)
public void testMobCompaction() throws InterruptedException, IOException
InterruptedExceptionIOExceptionprivate long getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) throws IOException
IOExceptionpublic void printStats(long loaded)
private void scanTable()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.