public class MapredLocalTask extends Task<MapredLocalWork> implements Serializable
Task.FeedType, Task.TaskState| Modifier and Type | Field and Description |
|---|---|
protected HadoopJobExecHelper |
jobExecHelper |
static org.slf4j.Logger |
l4j |
static MemoryMXBean |
memoryMXBean |
BACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, context, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, deferredWorkContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, jobID, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryDisplay, queryPlan, queryState, rootTask, taskCounters, taskHandle, taskQueue, taskTag, work| Constructor and Description |
|---|
MapredLocalTask() |
MapredLocalTask(MapredLocalWork plan,
org.apache.hadoop.mapred.JobConf job,
boolean isSilent) |
| Modifier and Type | Method and Description |
|---|---|
int |
execute()
This method is overridden in each Task.
|
int |
executeInProcess() |
String |
getName() |
Collection<Operator<? extends OperatorDesc>> |
getTopOperators() |
StageType |
getType()
Should be overridden to return the type of the specific task among the types in StageType.
|
void |
initialize(QueryState queryState,
QueryPlan queryPlan,
TaskQueue taskQueue,
Context context) |
boolean |
isMapRedLocalTask() |
static String |
now() |
boolean |
requireLock() |
void |
setExecContext(ExecMapperContext execContext) |
void |
shutdown() |
void |
startForward(String bigTableBucket) |
void |
updateTaskMetrics(org.apache.hadoop.hive.common.metrics.common.Metrics metrics)
Provide metrics on the type and number of tasks executed by the HiveServer
|
addDependentTask, canExecuteInParallel, cloneConf, done, equals, executeTask, findLeafs, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getConf, getContext, getCounters, getDeferredWorkContext, getDependentTasks, getDiagnosticsMessage, getException, getExternalHandle, getFeedSubscribers, getHive, getId, getInitialized, getJobID, getMapWork, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueryState, getQueued, getReducer, getStatusMessage, getTaskHandle, getTaskQueue, getTaskState, getTaskTag, getTxnMgr, getWork, hashCode, hasReduce, isFetchSource, isLocalMode, isMapRedTask, isNotInitialized, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, setBackupChildrenTasks, setBackupTask, setChildTasks, setConf, setConsole, setDeferredWorkContext, setDiagnosticMessage, setDone, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryDisplay, setQueryPlan, setQueued, setRootTask, setStarted, setState, setStatusMessage, setTaskQueue, setTaskTag, setWork, started, subscribeFeed, toString, updateStatusInQueryDisplayprotected HadoopJobExecHelper jobExecHelper
public static final transient org.slf4j.Logger l4j
public static MemoryMXBean memoryMXBean
public MapredLocalTask()
public MapredLocalTask(MapredLocalWork plan, org.apache.hadoop.mapred.JobConf job, boolean isSilent) throws HiveException
HiveExceptionpublic void setExecContext(ExecMapperContext execContext)
public void updateTaskMetrics(org.apache.hadoop.hive.common.metrics.common.Metrics metrics)
TaskupdateTaskMetrics in class Task<MapredLocalWork>public void initialize(QueryState queryState, QueryPlan queryPlan, TaskQueue taskQueue, Context context)
initialize in class Task<MapredLocalWork>public static String now()
public boolean requireLock()
requireLock in class Task<MapredLocalWork>public int execute()
Taskexecute in class Task<MapredLocalWork>public int executeInProcess()
public boolean isMapRedLocalTask()
isMapRedLocalTask in class Task<MapredLocalWork>public Collection<Operator<? extends OperatorDesc>> getTopOperators()
getTopOperators in class Task<MapredLocalWork>public StageType getType()
TaskgetType in class Task<MapredLocalWork>public void shutdown()
shutdown in class Task<MapredLocalWork>Copyright © 2022 The Apache Software Foundation. All rights reserved.