org.apache.hadoop.mapreduce.v2.app.job.impl
Class MapTaskImpl

java.lang.Object
  extended by org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl
      extended by org.apache.hadoop.mapreduce.v2.app.job.impl.MapTaskImpl
All Implemented Interfaces:
Task, org.apache.hadoop.yarn.event.EventHandler<TaskEvent>

public class MapTaskImpl
extends TaskImpl


Field Summary
 
Fields inherited from class org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl
appContext, clock, conf, credentials, eventHandler, jobFile, jobToken, nextAttemptNumber, partition, taskAttemptListener
 
Constructor Summary
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.Clock clock, int appAttemptId, MRAppMetrics metrics, AppContext appContext)
           
 
Method Summary
protected  TaskAttemptImpl createAttempt()
           
protected  int getMaxAttempts()
           
protected  String getSplitsAsString()
           
protected  org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo getTaskSplitMetaInfo()
           
 org.apache.hadoop.mapreduce.v2.api.records.TaskType getType()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.Clock clock,
                   int appAttemptId,
                   MRAppMetrics metrics,
                   AppContext appContext)
Method Detail

getMaxAttempts

protected int getMaxAttempts()
Specified by:
getMaxAttempts in class TaskImpl

createAttempt

protected TaskAttemptImpl createAttempt()
Specified by:
createAttempt in class TaskImpl

getType

public org.apache.hadoop.mapreduce.v2.api.records.TaskType getType()

getTaskSplitMetaInfo

protected org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo getTaskSplitMetaInfo()

getSplitsAsString

protected String getSplitsAsString()
Overrides:
getSplitsAsString in class TaskImpl
Returns:
a String formatted as a comma-separated list of splits.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.