Package org.apache.hadoop.hbase.mob
Class MobStressToolRunner
java.lang.Object
org.apache.hadoop.hbase.mob.MobStressToolRunner
Reproduction for MOB data loss 1. Settings: Region Size 200 MB, Flush threshold 800 KB. 2. Insert
10 Million records 3. MOB Compaction and Archiver a) Trigger MOB Compaction (every 2 minutes) b)
Trigger major compaction (every 2 minutes) c) Trigger archive cleaner (every 3 minutes) 4.
Validate MOB data after complete data load. This class is used by MobStressTool only. This is not
a unit test
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
private org.apache.hadoop.conf.Configuration
private long
private double
private static final byte[]
private static final String
private org.apache.hadoop.hbase.HColumnDescriptor
private org.apache.hadoop.hbase.HTableDescriptor
private HBaseTestingUtility
private static final org.slf4j.Logger
private static final long
private static final byte[]
private static final byte[]
private static boolean
private org.apache.hadoop.hbase.client.Table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
getNumberOfMobFiles
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) void
init
(org.apache.hadoop.conf.Configuration conf, long numRows) private void
initConf()
private void
void
printStats
(long loaded) void
private void
-
Field Details
-
LOG
-
HTU
-
famStr
- See Also:
-
fam
-
qualifier
-
mobLen
- See Also:
-
mobVal
-
conf
-
hdt
-
hcd
-
admin
-
count
-
failureProb
-
table
-
run
-
-
Constructor Details
-
MobStressToolRunner
public MobStressToolRunner()
-
-
Method Details
-
init
- Throws:
IOException
-
printConf
-
initConf
-
runStressTest
- Throws:
InterruptedException
IOException
-
getNumberOfMobFiles
private long getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) throws IOException - Throws:
IOException
-
printStats
-
scanTable
-