Class MapTaskImpl
java.lang.Object
org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl
org.apache.hadoop.mapreduce.v2.app.job.impl.MapTaskImpl
-
Field Summary
Fields inherited from class org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl
appContext, clock, conf, credentials, encryptedShuffle, eventHandler, jobFile, jobToken, nextAttemptNumber, partition, taskAttemptListener -
Constructor Summary
ConstructorsConstructorDescriptionMapTaskImpl(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId, int partition, org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.fs.Path remoteJobConfFile, org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo taskSplitMetaInfo, TaskAttemptListener taskAttemptListener, org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier> jobToken, org.apache.hadoop.security.Credentials credentials, org.apache.hadoop.yarn.util.Clock clock, int appAttemptId, MRAppMetrics metrics, AppContext appContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected TaskAttemptImplprotected intprotected Stringprotected org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfoorg.apache.hadoop.mapreduce.v2.api.records.TaskTypegetType()Methods inherited from class org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl
canCommit, getAttempt, getAttempts, getCounters, getID, getInternalState, getProgress, getReport, getState, getSuccessfulAttempt, handle, internalError, isFinished
-
Constructor Details
-
MapTaskImpl
public MapTaskImpl(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId, int partition, org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.fs.Path remoteJobConfFile, org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo taskSplitMetaInfo, TaskAttemptListener taskAttemptListener, org.apache.hadoop.security.token.Token<org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier> jobToken, org.apache.hadoop.security.Credentials credentials, org.apache.hadoop.yarn.util.Clock clock, int appAttemptId, MRAppMetrics metrics, AppContext appContext)
-
-
Method Details
-
getMaxAttempts
protected int getMaxAttempts()- Specified by:
getMaxAttemptsin classTaskImpl
-
createAttempt
- Specified by:
createAttemptin classTaskImpl
-
getType
public org.apache.hadoop.mapreduce.v2.api.records.TaskType getType() -
getTaskSplitMetaInfo
protected org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo getTaskSplitMetaInfo() -
getSplitsAsString
- Overrides:
getSplitsAsStringin classTaskImpl- Returns:
- a String formatted as a comma-separated list of splits.
-