public class MapRedTask extends ExecDriver implements Serializable
Task.FeedTypejob, jobExecHelper, LOG, memoryMXBeanBACKUP_COMMON_JOIN, backupChildrenTasks, backupTask, childTasks, clonedConf, COMMON_JOIN, conf, console, CONVERTED_MAPJOIN, CONVERTED_MAPJOIN_LOCAL, CONVERTED_SORTMERGEJOIN, db, driverContext, feedSubscribers, HINTED_MAPJOIN, HINTED_MAPJOIN_LOCAL, id, initialized, isdone, jobID, MAPJOIN_ONLY_NOBACKUP, NO_TAG, parentTasks, queryPlan, queued, rootTask, started, 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() |
checkFatalErrors, generateCmdLine, getCurrentDB, getMapWork, getName, getTopOperators, getType, hasReduce, initialize, isMapRedTask, logPlanProgress, main, requireLock, setInputAttributesaddDependentTask, cloneConf, done, equals, executeTask, getAndInitBackupTask, getBackupChildrenTasks, getBackupTask, getChildren, getChildTasks, getCounters, getDependentTasks, getFeedSubscribers, getId, getInitialized, getJobID, getNumChild, getNumParent, getParentTasks, getQueryPlan, getQueued, getTaskHandle, getTaskTag, getWork, hashCode, ifRetryCmdWhenFail, isFetchSource, isLocalMode, isMapRedLocalTask, isRootTask, isRunnable, pushFeed, receiveFeed, removeDependentTask, removeFromChildrenTasks, setBackupChildrenTasks, setBackupTask, setChildTasks, setConsole, setDone, setException, setFeedSubscribers, setFetchSource, setId, setInitialized, setLocalMode, setParentTasks, setQueryPlan, setQueued, setRetryCmdWhenFail, setRootTask, setStarted, setTaskTag, setWork, started, subscribeFeed, toStringpublic 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 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 © 2017 The Apache Software Foundation. All rights reserved.