public abstract class CompactorThread extends Thread implements org.apache.hadoop.conf.Configurable
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected long |
checkInterval |
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() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPostLoopActions(long elapsedTime) |
org.apache.hadoop.conf.Configuration |
getConf() |
protected String |
getRuntimeVersion() |
void |
init(AtomicBoolean stop) |
static void |
initializeAndStartThread(CompactorThread thread,
org.apache.hadoop.conf.Configuration conf) |
protected boolean |
replIsCompactionDisabledForTable(org.apache.hadoop.hive.metastore.api.Table tbl) |
protected abstract org.apache.hadoop.hive.metastore.api.Partition |
resolvePartition(CompactionInfo ci)
Get the partition being compacted.
|
void |
setConf(org.apache.hadoop.conf.Configuration configuration) |
protected String |
tableName(org.apache.hadoop.hive.metastore.api.Table t) |
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
protected long checkInterval
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 abstract 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 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 void doPostLoopActions(long elapsedTime)
throws InterruptedException
InterruptedExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.