public class MapRedTask extends ExecDriver implements Serializable
Task.FeedType
job, jobExecHelper, LOG, memoryMXBean
BACKUP_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, setInputAttributes
addDependentTask, 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, toString
public int execute(DriverContext driverContext)
ExecDriver
execute
in class ExecDriver
public boolean mapStarted()
mapStarted
in class ExecDriver
public boolean reduceStarted()
reduceStarted
in class ExecDriver
public boolean mapDone()
mapDone
in class ExecDriver
public boolean reduceDone()
reduceDone
in class ExecDriver
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 ExecDriver
Copyright © 2017 The Apache Software Foundation. All rights reserved.