public class Worker extends RemoteCompactorThread implements MetaStoreThread
Thread.State, Thread.UncaughtExceptionHandlermscconf, hostName, runtimeVersion, stopMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Worker() |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
findNextCompactionAndExecute(boolean collectGenericStats,
boolean collectMrStats)
Finds the next compaction and executes it.
|
CompactorMR |
getMrCompactor() |
void |
init(AtomicBoolean stop) |
static boolean |
needsCleaning(AcidDirectory dir,
org.apache.hadoop.hive.metastore.api.StorageDescriptor sd)
Check for obsolete directories, and return true if any exist and Cleaner should be
run.
|
void |
run() |
getPoolName, setPoolNamecreateLockRequest, getConf, getRuntimeVersion, initializeAndStartThread, isMinorCompactionSupported, replIsCompactionDisabledForTable, resolvePartition, resolveStorageDescriptor, runJobAsSelf, setConf, tableNameactiveCount, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstartpublic void init(AtomicBoolean stop) throws Exception
init in interface MetaStoreThreadinit in class RemoteCompactorThreadExceptionpublic static boolean needsCleaning(AcidDirectory dir, org.apache.hadoop.hive.metastore.api.StorageDescriptor sd)
protected Boolean findNextCompactionAndExecute(boolean collectGenericStats, boolean collectMrStats)
collectGenericStats - If true then for both MR and Query based compaction the stats are regeneratedcollectMrStats - If true then for MR compaction the stats are regeneratedpublic CompactorMR getMrCompactor()
Copyright © 2022 The Apache Software Foundation. All rights reserved.