@InterfaceAudience.Private public final class MobFileCleanupUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
MobFileCleanupUtil() |
Modifier and Type | Method and Description |
---|---|
private static void |
archiveMobFiles(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
Admin admin,
byte[] family,
List<org.apache.hadoop.fs.Path> storeFiles)
Archives the mob files.
|
private static void |
checkColumnFamilyDescriptor(org.apache.hadoop.conf.Configuration conf,
TableName table,
org.apache.hadoop.fs.FileSystem fs,
Admin admin,
ColumnFamilyDescriptor hcd,
Set<String> regionNames,
long maxCreationTimeToArchive) |
static void |
cleanupObsoleteMobFiles(org.apache.hadoop.conf.Configuration conf,
TableName table,
Admin admin)
Performs housekeeping file cleaning (called by MOB Cleaner chore)
|
private static final org.slf4j.Logger LOG
private MobFileCleanupUtil()
public static void cleanupObsoleteMobFiles(org.apache.hadoop.conf.Configuration conf, TableName table, Admin admin) throws IOException
conf
- configurationtable
- table nameIOException
- exceptionprivate static void checkColumnFamilyDescriptor(org.apache.hadoop.conf.Configuration conf, TableName table, org.apache.hadoop.fs.FileSystem fs, Admin admin, ColumnFamilyDescriptor hcd, Set<String> regionNames, long maxCreationTimeToArchive) throws IOException
IOException
private static void archiveMobFiles(org.apache.hadoop.conf.Configuration conf, TableName tableName, Admin admin, 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.