public class MapRedTask extends ExecDriver implements Serializable
Task.FeedType, Task.TaskStatejob, jobExecHelper, LOG, memoryMXBeanBACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, driverContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, jobID, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryDisplay, queryPlan, queryState, rootTask, taskCounters, taskHandle, taskTag, work| Constructor and Description |
|---|
MapRedTask() |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(DriverContext driverContext)
Execute a query plan using Hadoop.
|
Operator<? extends OperatorDesc> |
getReducer(MapWork mapWork) |
static String |
isEligibleForLocalMode(HiveConf conf,
int numReducers,
long inputLength,
long inputFileCount)
Find out if a job can be run in local mode based on it's characteristics
|
boolean |
mapDone() |
boolean |
mapStarted() |
boolean |
reduceDone() |
boolean |
reduceStarted() |
void |
shutdown() |
void |
updateTaskMetrics(Metrics metrics)
Provide metrics on the type and number of tasks executed by the HiveServer
|
checkFatalErrors, generateCmdLine, getCurrentDB, getExternalHandle, getMapWork, getName, getResource, getTopOperators, getType, hasReduce, initialize, isMapRedTask, isTaskShutdown, logPlanProgress, main, propagateSplitSettings, requireLock, setInputAttributesaddDependentTask, canExecuteInParallel, cloneConf, done, equals, executeTask, findLeafs, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getDiagnosticsMessage, getDriverContext, getFeedSubscribers, getHive, getId, getInitialized, getJobID, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueryState, getQueued, getStatusMessage, getTaskHandle, getTaskState, getTaskTag, getTxnMgr, getWork, hashCode, isFetchSource, isLocalMode, isMapRedLocalTask, isNotInitialized, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, setBackupChildrenTasks, setBackupTask, setChildTasks, setConf, setConsole, setDiagnosticMessage, setDone, setDriverContext, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryDisplay, setQueryPlan, setQueued, setRootTask, setStarted, setState, setStatusMessage, setTaskTag, setWork, started, subscribeFeed, toString, updateStatusInQueryDisplaypublic int execute(DriverContext driverContext)
ExecDriverexecute in class ExecDriverpublic boolean mapStarted()
mapStarted in class ExecDriverpublic boolean reduceStarted()
reduceStarted in class ExecDriverpublic boolean mapDone()
mapDone in class ExecDriverpublic boolean reduceDone()
reduceDone in class ExecDriverpublic void updateTaskMetrics(Metrics metrics)
TaskupdateTaskMetrics in class Task<MapredWork>public static String isEligibleForLocalMode(HiveConf conf, int numReducers, long inputLength, long inputFileCount)
conf - Hive ConfigurationnumReducers - total number of reducers for this jobinputLength - the size of the inputinputFileCount - the number of files of inputpublic Operator<? extends OperatorDesc> getReducer(MapWork mapWork)
getReducer in class Task<MapredWork>public void shutdown()
shutdown in class ExecDriverCopyright © 2019 The Apache Software Foundation. All Rights Reserved.