org.apache.hadoop.mapreduce.jobhistory
Class JobHistoryParser.TaskAttemptInfo
java.lang.Object
org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.TaskAttemptInfo
- Enclosing class:
- JobHistoryParser
public static class JobHistoryParser.TaskAttemptInfo
- extends Object
Task Attempt Information is aggregated in this class after parsing
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobHistoryParser.TaskAttemptInfo
public JobHistoryParser.TaskAttemptInfo()
- Create a Task Attempt Info which will store attempt level information
on a history parse.
printAll
public void printAll()
- Print all the information about this attempt.
getAttemptId
public TaskAttemptID getAttemptId()
- Returns:
- the attempt Id
getStartTime
public long getStartTime()
- Returns:
- the start time of the attempt
getFinishTime
public long getFinishTime()
- Returns:
- the finish time of the attempt
getShuffleFinishTime
public long getShuffleFinishTime()
- Returns:
- the shuffle finish time. Applicable only for reduce attempts
getSortFinishTime
public long getSortFinishTime()
- Returns:
- the sort finish time. Applicable only for reduce attempts
getMapFinishTime
public long getMapFinishTime()
- Returns:
- the map finish time. Applicable only for map attempts
getError
public String getError()
- Returns:
- the error string
getState
public String getState()
- Returns:
- the state
getTaskStatus
public String getTaskStatus()
- Returns:
- the task status
getTaskType
public TaskType getTaskType()
- Returns:
- the task type
getTrackerName
public String getTrackerName()
- Returns:
- the tracker name where the attempt executed
getHostname
public String getHostname()
- Returns:
- the host name
getPort
public int getPort()
- Returns:
- the port
getRackname
public String getRackname()
- Returns:
- the rack name
getCounters
public Counters getCounters()
- Returns:
- the counters for the attempt
getHttpPort
public int getHttpPort()
- Returns:
- the HTTP port for the tracker
getShufflePort
public int getShufflePort()
- Returns:
- the Shuffle port for the tracker
getContainerId
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
- Returns:
- the ContainerId for the tracker
Copyright © 2013 Apache Software Foundation. All Rights Reserved.