@InterfaceAudience.Private public class MobFileCompactionChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private HMaster |
master |
private int |
regionBatchSize |
Constructor and Description |
---|
MobFileCompactionChore(org.apache.hadoop.conf.Configuration conf,
int batchSize) |
MobFileCompactionChore(HMaster master) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
void |
performMajorCompactionInBatches(Admin admin,
TableDescriptor htd,
ColumnFamilyDescriptor hcd) |
private void |
startCompaction(Admin admin,
TableName table,
RegionInfo region,
byte[] cf) |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
private static final org.slf4j.Logger LOG
private int regionBatchSize
public MobFileCompactionChore(HMaster master)
public MobFileCompactionChore(org.apache.hadoop.conf.Configuration conf, int batchSize)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
public void performMajorCompactionInBatches(Admin admin, TableDescriptor htd, ColumnFamilyDescriptor hcd) throws IOException, InterruptedException
IOException
InterruptedException
private void startCompaction(Admin admin, TableName table, RegionInfo region, byte[] cf) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.