public class TaskAttemptContextImpl extends JobContextImpl implements TaskAttemptContext
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskAttemptContextImpl.DummyReporter |
conf, credentials, ugiCACHE_ARCHIVES_VISIBILITIES, CACHE_FILE_VISIBILITIES, COMBINE_CLASS_ATTR, INPUT_FORMAT_CLASS_ATTR, JAR_UNPACK_PATTERN, JOB_ACL_MODIFY_JOB, JOB_ACL_VIEW_JOB, JOB_CANCEL_DELEGATION_TOKEN, JOB_NAMENODES, MAP_CLASS_ATTR, MAP_MEMORY_PHYSICAL_MB, MAP_OUTPUT_COLLECTOR_CLASS_ATTR, MAPREDUCE_TASK_CLASSPATH_PRECEDENCE, OUTPUT_FORMAT_CLASS_ATTR, PARTITIONER_CLASS_ATTR, REDUCE_CLASS_ATTR, REDUCE_MEMORY_PHYSICAL_MB, SHUFFLE_CONSUMER_PLUGIN_ATTR, USER_LOG_RETAIN_HOURS| Constructor and Description |
|---|
TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId) |
TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId,
StatusReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
Counter |
getCounter(java.lang.Enum<?> counterName)
Get the
Counter for the given counterName. |
Counter |
getCounter(java.lang.String groupName,
java.lang.String counterName)
|
java.lang.String |
getStatus()
Get the last set status message.
|
TaskAttemptID |
getTaskAttemptID()
Get the unique name for this task attempt.
|
void |
progress()
Report progress.
|
void |
setStatus(java.lang.String status)
Set the current status of the task to the given string.
|
protected void |
setStatusString(java.lang.String status) |
getArchiveClassPaths, getArchiveTimestamps, getCacheArchives, getCacheFiles, getCombinerClass, getCombinerKeyGroupingComparator, getConfiguration, getCredentials, getFileClassPaths, getFileTimestamps, getGroupingComparator, getInputFormatClass, getJar, getJobID, getJobName, getJobSetupCleanupNeeded, getLocalCacheArchives, getLocalCacheFiles, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getMaxMapAttempts, getMaxReduceAttempts, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getProfileEnabled, getProfileParams, getProfileTaskRange, getReducerClass, getSortComparator, getSymlink, getUser, getWorkingDirectory, setJobID, userClassesTakesPrecedenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArchiveClassPaths, getArchiveTimestamps, getCacheArchives, getCacheFiles, getCombinerClass, getCombinerKeyGroupingComparator, getConfiguration, getCredentials, getFileClassPaths, getFileTimestamps, getGroupingComparator, getInputFormatClass, getJar, getJobID, getJobName, getJobSetupCleanupNeeded, getLocalCacheArchives, getLocalCacheFiles, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getMaxMapAttempts, getMaxReduceAttempts, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getProfileEnabled, getProfileParams, getReducerClass, getSortComparator, getSymlink, getUser, getWorkingDirectory, userClassesTakesPrecedencepublic TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId)
public TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId,
StatusReporter reporter)
public TaskAttemptID getTaskAttemptID()
getTaskAttemptID in interface TaskAttemptContextpublic java.lang.String getStatus()
getStatus in interface TaskAttemptContextpublic Counter getCounter(java.lang.Enum<?> counterName)
TaskAttemptContextCounter for the given counterName.getCounter in interface TaskAttemptContextcounterName - counter nameCounter for the given counterNamepublic Counter getCounter(java.lang.String groupName, java.lang.String counterName)
TaskAttemptContextgetCounter in interface TaskAttemptContextcounterName - counter nameCounter for the given groupName and
counterNamepublic void progress()
progress in interface org.apache.hadoop.util.Progressableprotected void setStatusString(java.lang.String status)
public void setStatus(java.lang.String status)
setStatus in interface TaskAttemptContextCopyright © 2009 The Apache Software Foundation