public interface TaskAttemptContext extends JobContext, org.apache.hadoop.util.Progressable
CACHE_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
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 |
setStatus(java.lang.String msg)
Set the current status of the task to the given string.
|
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, getReducerClass, getSortComparator, getSymlink, getUser, getWorkingDirectory, userClassesTakesPrecedence
TaskAttemptID getTaskAttemptID()
void setStatus(java.lang.String msg)
java.lang.String getStatus()
Counter getCounter(java.lang.Enum<?> counterName)
Counter
for the given counterName
.counterName
- counter nameCounter
for the given counterName
Counter getCounter(java.lang.String groupName, java.lang.String counterName)
counterName
- counter nameCounter
for the given groupName
and
counterName
Copyright © 2009 The Apache Software Foundation