public abstract class CompactorThread extends Thread implements org.apache.hadoop.conf.Configurable
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected HiveConf |
conf |
protected String |
hostName |
protected static org.slf4j.Logger |
LOG |
protected String |
runtimeVersion |
protected AtomicBoolean |
stop |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CompactorThread() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected static final org.slf4j.Logger LOG
protected HiveConf conf
protected AtomicBoolean stop
protected String hostName
protected String runtimeVersion
public void setConf(org.apache.hadoop.conf.Configuration configuration)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void init(AtomicBoolean stop) throws Exception
Exceptionprotected org.apache.hadoop.hive.metastore.api.Partition resolvePartition(CompactionInfo ci) throws org.apache.hadoop.hive.metastore.api.MetaException
ci - compaction info returned from the compaction queueorg.apache.hadoop.hive.metastore.api.MetaException - if underlying calls throw, or if the partition name resolves to more than
one partition.protected boolean isMinorCompactionSupported(Map<String,String> tblproperties, AcidDirectory dir)
tblproperties - The properties of the table to checkdir - The AcidDirectory instance pointing to the table's folder on the filesystem.protected org.apache.hadoop.hive.metastore.api.StorageDescriptor resolveStorageDescriptor(org.apache.hadoop.hive.metastore.api.Table t, org.apache.hadoop.hive.metastore.api.Partition p)
t - table from resolveTable(org.apache.hadoop.hive.metastore.txn.CompactionInfo)p - table from resolvePartition(org.apache.hadoop.hive.metastore.txn.CompactionInfo)protected boolean runJobAsSelf(String owner)
owner - of the directory we will be working in, as determined by
TxnUtils.findUserToRunAs(String, Table, Configuration)protected String tableName(org.apache.hadoop.hive.metastore.api.Table t)
public static void initializeAndStartThread(CompactorThread thread, org.apache.hadoop.conf.Configuration conf) throws Exception
Exceptionprotected boolean replIsCompactionDisabledForTable(org.apache.hadoop.hive.metastore.api.Table tbl)
protected String getRuntimeVersion()
protected org.apache.hadoop.hive.metastore.api.LockRequest createLockRequest(CompactionInfo ci, long txnId, org.apache.hadoop.hive.metastore.api.LockType lockType, org.apache.hadoop.hive.metastore.api.DataOperationType opType)
Copyright © 2022 The Apache Software Foundation. All rights reserved.