org.apache.hadoop.mapreduce.jobhistory
Class TaskAttemptUnsuccessfulCompletionEvent

java.lang.Object
  extended by org.apache.hadoop.mapreduce.jobhistory.TaskAttemptUnsuccessfulCompletionEvent
All Implemented Interfaces:
HistoryEvent

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TaskAttemptUnsuccessfulCompletionEvent
extends Object
implements HistoryEvent

Event to record unsuccessful (Killed/Failed) completion of task attempts


Constructor Summary
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, int port, String rackName, String error, Counters counters, int[][] allSplits)
          Create an event to record the unsuccessful completion of attempts
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, int port, String rackName, String error, int[][] allSplits)
           
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, String error)
          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 the unsuccessful completion of attempts
 
Method Summary
 int[] getClockSplits()
           
 int[] getCpuUsages()
           
 Object getDatum()
          Return the Avro datum wrapped by this.
 String getError()
          Get the error string
 EventType getEventType()
          Get the event type
 long getFinishTime()
          Get the finish time
 String getHostname()
          Get the name of the host where the attempt executed
 int[] getPhysMemKbytes()
           
 int getPort()
          Get the rpc port for the host where the attempt executed
 String getRackName()
          Get the rack name of the node where the attempt ran
 TaskAttemptID getTaskAttemptId()
          Get the attempt id
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskAttemptUnsuccessfulCompletionEvent

public TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
                                              TaskType taskType,
                                              String status,
                                              long finishTime,
                                              String hostname,
                                              int port,
                                              String rackName,
                                              String error,
                                              Counters counters,
                                              int[][] allSplits)
Create an event to record the unsuccessful completion of attempts

Parameters:
id - Attempt ID
taskType - Type of the task
status - Status of the attempt
finishTime - Finish time of the attempt
hostname - Name of the host where the attempt executed
port - rpc port for for the tracker
rackName - Name of the rack where the attempt executed
error - Error string
counters - Counters for the attempt
allSplits - 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.

TaskAttemptUnsuccessfulCompletionEvent

public TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
                                              TaskType taskType,
                                              String status,
                                              long finishTime,
                                              String hostname,
                                              String error)
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 the unsuccessful completion of attempts

Parameters:
id - Attempt ID
taskType - Type of the task
status - Status of the attempt
finishTime - Finish time of the attempt
hostname - Name of the host where the attempt executed
error - Error string

TaskAttemptUnsuccessfulCompletionEvent

public TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
                                              TaskType taskType,
                                              String status,
                                              long finishTime,
                                              String hostname,
                                              int port,
                                              String rackName,
                                              String error,
                                              int[][] allSplits)
Method Detail

getDatum

public Object getDatum()
Description copied from interface: HistoryEvent
Return the Avro datum wrapped by this.

Specified by:
getDatum in interface HistoryEvent

setDatum

public void setDatum(Object odatum)
Description copied from interface: HistoryEvent
Set the Avro datum wrapped by this.

Specified by:
setDatum in interface HistoryEvent

getTaskId

public TaskID getTaskId()
Get the task id


getTaskType

public TaskType getTaskType()
Get the task type


getTaskAttemptId

public TaskAttemptID getTaskAttemptId()
Get the attempt id


getFinishTime

public long getFinishTime()
Get the finish time


getHostname

public String getHostname()
Get the name of the host where the attempt executed


getPort

public int getPort()
Get the rpc port for the host where the attempt executed


getRackName

public String getRackName()
Get the rack name of the node where the attempt ran


getError

public String getError()
Get the error string


getTaskStatus

public String getTaskStatus()
Get the task status


getEventType

public EventType getEventType()
Get the event type

Specified by:
getEventType in interface HistoryEvent

getClockSplits

public int[] getClockSplits()

getCpuUsages

public int[] getCpuUsages()

getVMemKbytes

public int[] getVMemKbytes()

getPhysMemKbytes

public int[] getPhysMemKbytes()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.