@InterfaceAudience.Private @InterfaceStability.Unstable public class ReduceAttemptFinishedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
ReduceAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long shuffleFinishTime,
long sortFinishTime,
long finishTime,
String hostname,
int port,
String rackName,
String state,
Counters counters,
int[][] allSplits)
Create an event to record completion of a reduce attempt
|
ReduceAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long shuffleFinishTime,
long sortFinishTime,
long finishTime,
String hostname,
String state,
Counters counters)
Deprecated.
please use the constructor with an additional
argument, an array of splits arrays instead. See
ProgressSplitsBlock
for an explanation of the meaning of that parameter.
Create an event to record completion of a reduce attempt |
Modifier and Type | Method and Description |
---|---|
TaskAttemptID |
getAttemptId()
Get the attempt id
|
int[] |
getClockSplits() |
int[] |
getCpuUsages() |
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the event type
|
long |
getFinishTime()
Get the finish time of the attempt
|
String |
getHostname()
Get the name of the host where the attempt ran
|
int[] |
getPhysMemKbytes() |
int |
getPort()
Get the tracker rpc port
|
String |
getRackName()
Get the rack name of the node where the attempt ran
|
long |
getShuffleFinishTime()
Get the finish time of the shuffle phase
|
long |
getSortFinishTime()
Get the finish time of the sort phase
|
String |
getState()
Get the state string
|
TaskID |
getTaskId()
Get the Task ID
|
String |
getTaskStatus()
Get the task status
|
TaskType |
getTaskType()
Get the task type
|
int[] |
getVMemKbytes() |
void |
setDatum(Object oDatum)
Set the Avro datum wrapped by this.
|
public ReduceAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long shuffleFinishTime, long sortFinishTime, long finishTime, String hostname, int port, String rackName, String state, Counters counters, int[][] allSplits)
id
- Attempt IdtaskType
- Type of tasktaskStatus
- Status of the taskshuffleFinishTime
- Finish time of the shuffle phasesortFinishTime
- Finish time of the sort phasefinishTime
- Finish time of the attempthostname
- Name of the host where the attempt executedport
- RPC port for the tracker host.rackName
- Name of the rack where the attempt executedstate
- State of the attemptcounters
- Counters for the attemptallSplits
- the "splits", or a pixelated graph of various
measurable worker node state variables against progress.
Currently there are four; wallclock time, CPU time,
virtual memory and physical memory.public ReduceAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long shuffleFinishTime, long sortFinishTime, long finishTime, String hostname, String state, Counters counters)
ProgressSplitsBlock
for an explanation of the meaning of that parameter.
Create an event to record completion of a reduce attemptid
- Attempt IdtaskType
- Type of tasktaskStatus
- Status of the taskshuffleFinishTime
- Finish time of the shuffle phasesortFinishTime
- Finish time of the sort phasefinishTime
- Finish time of the attempthostname
- Name of the host where the attempt executedstate
- State of the attemptcounters
- Counters for the attemptpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object oDatum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public TaskAttemptID getAttemptId()
public TaskType getTaskType()
public String getTaskStatus()
public long getSortFinishTime()
public long getShuffleFinishTime()
public long getFinishTime()
public String getHostname()
public int getPort()
public String getRackName()
public String getState()
public EventType getEventType()
getEventType
in interface HistoryEvent
public int[] getClockSplits()
public int[] getCpuUsages()
public int[] getVMemKbytes()
public int[] getPhysMemKbytes()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.