public class MRCompactor extends Object implements Compactor
| Modifier and Type | Class and Description |
|---|---|
static class |
MRCompactor.CompactorMap<V extends org.apache.hadoop.io.Writable> |
FINAL_LOCATION| Constructor and Description |
|---|
MRCompactor(IMetaStoreClient msc) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapred.JobConf |
createBaseJobConf(HiveConf conf,
String jobName,
org.apache.hadoop.hive.metastore.api.Table t,
org.apache.hadoop.hive.metastore.api.StorageDescriptor sd,
ValidWriteIdList writeIds,
CompactionInfo ci) |
org.apache.hadoop.mapred.JobConf |
getMrJob() |
boolean |
run(CompactorContext context)
Start a compaction.
|
void |
run(HiveConf conf,
org.apache.hadoop.hive.metastore.api.Table t,
org.apache.hadoop.hive.metastore.api.StorageDescriptor sd,
ValidWriteIdList writeIds,
CompactionInfo ci,
AcidDirectory dir)
Run Compaction which may consist of several jobs on the cluster.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompactorTxnIdpublic MRCompactor(IMetaStoreClient msc)
public boolean run(CompactorContext context) throws IOException, HiveException, InterruptedException
Compactorrun in interface Compactorcontext - CompactionContext which contains information to perform compaction.IOException - compaction cannot be finished.HiveExceptionInterruptedExceptionpublic org.apache.hadoop.mapred.JobConf createBaseJobConf(HiveConf conf, String jobName, org.apache.hadoop.hive.metastore.api.Table t, org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, ValidWriteIdList writeIds, CompactionInfo ci)
public void run(HiveConf conf, org.apache.hadoop.hive.metastore.api.Table t, org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, ValidWriteIdList writeIds, CompactionInfo ci, AcidDirectory dir) throws IOException
conf - Hive configuration filet - metastore tablesd - metastore storage descriptorwriteIds - list of valid write idsci - CompactionInfoIOException - if the job failspublic org.apache.hadoop.mapred.JobConf getMrJob()
Copyright © 2024 The Apache Software Foundation. All rights reserved.