|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.JobHistory.Task org.apache.hadoop.mapred.JobHistory.TaskAttempt org.apache.hadoop.mapred.JobHistory.ReduceAttempt
public static class JobHistory.ReduceAttempt
Helper class for logging or reading back events related to start, finish or failure of a Map Attempt on a node.
Constructor Summary | |
---|---|
JobHistory.ReduceAttempt()
|
Method Summary | |
---|---|
String |
get(JobHistory.Keys k)
Get 'String' value for given key. |
int |
getInt(JobHistory.Keys k)
Convert value from history to int and return. |
long |
getLong(JobHistory.Keys k)
Convert value from history to int and return. |
Map<JobHistory.Keys,String> |
getValues()
Returns Map containing all key-values. |
void |
handle(Map<JobHistory.Keys,String> values)
Reads values back from the history, input is same Map as passed to Listener by parseHistory(). |
static void |
logFailed(TaskAttemptID taskAttemptId,
long timestamp,
String hostName,
String error)
Deprecated. Use logFailed(TaskAttemptID, long, String, String, String) |
static void |
logFailed(TaskAttemptID taskAttemptId,
long timestamp,
String hostName,
String error,
String taskType)
Log failed reduce task attempt. |
static void |
logFinished(TaskAttemptID taskAttemptId,
long shuffleFinished,
long sortFinished,
long finishTime,
String hostName)
Deprecated. Use logFinished(TaskAttemptID, long, long, long, String, String, String, Counters) |
static void |
logFinished(TaskAttemptID taskAttemptId,
long shuffleFinished,
long sortFinished,
long finishTime,
String hostName,
String taskType,
String stateString,
Counters counter)
Log finished event of this task. |
static void |
logKilled(TaskAttemptID taskAttemptId,
long timestamp,
String hostName,
String error)
Deprecated. Use logKilled(TaskAttemptID, long, String, String, String) |
static void |
logKilled(TaskAttemptID taskAttemptId,
long timestamp,
String hostName,
String error,
String taskType)
Log killed reduce task attempt. |
static void |
logStarted(TaskAttemptID taskAttemptId,
long startTime,
String hostName)
Deprecated. Use logStarted(TaskAttemptID, long, String, int, String) |
static void |
logStarted(TaskAttemptID taskAttemptId,
long startTime,
String trackerName,
int httpPort,
String taskType)
Deprecated. |
static void |
logStarted(TaskAttemptID taskAttemptId,
long startTime,
String trackerName,
int httpPort,
String taskType,
org.apache.hadoop.mapred.Locality locality,
org.apache.hadoop.mapred.Avataar avataar)
Log start time of Reduce task attempt. |
void |
set(JobHistory.Keys k,
String s)
Set value for the key. |
void |
set(Map<JobHistory.Keys,String> m)
Adds all values in the Map argument to its own values. |
Methods inherited from class org.apache.hadoop.mapred.JobHistory.Task |
---|
getTaskAttempts, logFailed, logFailed, logFinished, logStarted, logUpdates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobHistory.ReduceAttempt()
Method Detail |
---|
@Deprecated public static void logStarted(TaskAttemptID taskAttemptId, long startTime, String hostName)
logStarted(TaskAttemptID, long, String, int, String)
taskAttemptId
- task attempt idstartTime
- start timehostName
- host name@Deprecated public static void logStarted(TaskAttemptID taskAttemptId, long startTime, String trackerName, int httpPort, String taskType)
public static void logStarted(TaskAttemptID taskAttemptId, long startTime, String trackerName, int httpPort, String taskType, org.apache.hadoop.mapred.Locality locality, org.apache.hadoop.mapred.Avataar avataar)
taskAttemptId
- task attempt idstartTime
- start timetrackerName
- tracker namehttpPort
- the http port of the tracker executing the task attempttaskType
- Whether the attempt is cleanup or setup or reducelocality
- the data locality of the task attemptAvataar
- the avataar of the task attempt@Deprecated public static void logFinished(TaskAttemptID taskAttemptId, long shuffleFinished, long sortFinished, long finishTime, String hostName)
logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)
taskAttemptId
- task attempt idshuffleFinished
- shuffle finish timesortFinished
- sort finish timefinishTime
- finish time of taskhostName
- host name where task attempt executedpublic static void logFinished(TaskAttemptID taskAttemptId, long shuffleFinished, long sortFinished, long finishTime, String hostName, String taskType, String stateString, Counters counter)
taskAttemptId
- task attempt idshuffleFinished
- shuffle finish timesortFinished
- sort finish timefinishTime
- finish time of taskhostName
- host name where task attempt executedtaskType
- Whether the attempt is cleanup or setup or reducestateString
- the state string of the attemptcounter
- counters of the attempt@Deprecated public static void logFailed(TaskAttemptID taskAttemptId, long timestamp, String hostName, String error)
logFailed(TaskAttemptID, long, String, String, String)
taskAttemptId
- task attempt idtimestamp
- time stamp when task failedhostName
- host name of the task attempt.error
- error message of the task.public static void logFailed(TaskAttemptID taskAttemptId, long timestamp, String hostName, String error, String taskType)
taskAttemptId
- task attempt idtimestamp
- time stamp when task failedhostName
- host name of the task attempt.error
- error message of the task.taskType
- Whether the attempt is cleanup or setup or reduce@Deprecated public static void logKilled(TaskAttemptID taskAttemptId, long timestamp, String hostName, String error)
logKilled(TaskAttemptID, long, String, String, String)
taskAttemptId
- task attempt idtimestamp
- time stamp when task failedhostName
- host name of the task attempt.error
- error message of the task.public static void logKilled(TaskAttemptID taskAttemptId, long timestamp, String hostName, String error, String taskType)
taskAttemptId
- task attempt idtimestamp
- time stamp when task failedhostName
- host name of the task attempt.error
- error message of the task.taskType
- Whether the attempt is cleanup or setup or reducepublic String get(JobHistory.Keys k)
k
-
public int getInt(JobHistory.Keys k)
k
- keypublic long getLong(JobHistory.Keys k)
k
- public void set(JobHistory.Keys k, String s)
k
- s
- public void set(Map<JobHistory.Keys,String> m)
m
- public void handle(Map<JobHistory.Keys,String> values)
values
- public Map<JobHistory.Keys,String> getValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |