public class CompactorMR extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CompactorMR.CompactorMap<V extends org.apache.hadoop.io.Writable> |
| Constructor and Description |
|---|
CompactorMR() |
| 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() |
void |
run(HiveConf conf,
String jobName,
org.apache.hadoop.hive.metastore.api.Table t,
org.apache.hadoop.hive.metastore.api.Partition p,
org.apache.hadoop.hive.metastore.api.StorageDescriptor sd,
ValidWriteIdList writeIds,
CompactionInfo ci,
IMetaStoreClient msc,
AcidDirectory dir)
Run Compaction which may consist of several jobs on the cluster.
|
public 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, String jobName, org.apache.hadoop.hive.metastore.api.Table t, org.apache.hadoop.hive.metastore.api.Partition p, org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, ValidWriteIdList writeIds, CompactionInfo ci, IMetaStoreClient msc, AcidDirectory dir) throws IOException
conf - Hive configuration filejobName - name to run this job witht - metastore tablesd - metastore storage descriptorwriteIds - list of valid write idsci - CompactionInfoIOException - if the job failspublic org.apache.hadoop.mapred.JobConf getMrJob()
Copyright © 2022 The Apache Software Foundation. All rights reserved.