Package org.apache.hadoop.hbase.mob
Class TestMobFileCleanupUtil
java.lang.Object
org.apache.hadoop.hbase.mob.TestMobFileCleanupUtil
Mob file cleaner chore test. 1. Creates MOB table 2. Load MOB data and flushes it N times 3. Runs
major MOB compaction (N MOB files go to archive) 4. Verifies that number of MOB files in a mob
directory is N+1 5. Waits for a period of time larger than minimum age to archive 6. Runs Mob
cleaner chore 7 Verifies that number of MOB files in a mob directory is 1.
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
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 long
private static final long
private static final byte[]
private static final byte[]
private org.apache.hadoop.hbase.client.Table
-
Constructor Summary
-
Method Summary
-
Field Details
-
LOG
-
CLASS_RULE
-
HTU
-
famStr
- See Also:
-
fam
-
qualifier
-
mobLen
- See Also:
-
mobVal
-
conf
-
hdt
-
hcd
-
admin
-
table
-
minAgeToArchive
-
-
Constructor Details
-
TestMobFileCleanupUtil
public TestMobFileCleanupUtil()
-
-
Method Details
-
setUp
- Throws:
Exception
-
initConf
-
loadData
-
tearDown
- Throws:
Exception
-
testMobFileCleanerChore
- 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
-
scanTable
-