@InterfaceAudience.Private public class MobFileCleanerChore extends ScheduledChore
| Modifier and Type | Field and Description |
|---|---|
private ExpiredMobFileCleaner |
cleaner |
private static org.slf4j.Logger |
LOG |
private HMaster |
master |
| Constructor and Description |
|---|
MobFileCleanerChore() |
MobFileCleanerChore(HMaster master) |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveMobFiles(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
byte[] family,
List<org.apache.hadoop.fs.Path> storeFiles)
Archives the mob files.
|
private void |
checkObsoleteConfigurations() |
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
void |
cleanupObsoleteMobFiles(org.apache.hadoop.conf.Configuration conf,
TableName table)
Performs housekeeping file cleaning (called by MOB Cleaner chore)
|
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNowprivate static final org.slf4j.Logger LOG
private ExpiredMobFileCleaner cleaner
public MobFileCleanerChore(HMaster master)
public MobFileCleanerChore()
private void checkObsoleteConfigurations()
protected void chore()
ScheduledChorechore in class ScheduledChorepublic void cleanupObsoleteMobFiles(org.apache.hadoop.conf.Configuration conf, TableName table) throws IOException
conf - configurationtable - table nameIOException - exceptionpublic void archiveMobFiles(org.apache.hadoop.conf.Configuration conf, TableName tableName, byte[] family, List<org.apache.hadoop.fs.Path> storeFiles) throws IOException
conf - The current configuration.tableName - The table name.family - The name of the column family.storeFiles - The files to be archived.IOException - exceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.