List of usage examples for org.apache.hadoop.mapred TaskCompletionEvent TaskCompletionEvent
public TaskCompletionEvent(int eventId, TaskAttemptID taskId, int idWithinJob, boolean isMap, Status status, String taskTrackerHttp)
From source file:org.apache.falcon.logging.v2.TaskLogRetrieverYarnTest.java
License:Apache License
private TaskCompletionEvent[] getTaskCompletionEvents(int numEvents, JobID jobID) { TaskCompletionEvent[] taskCompletionEvents = new TaskCompletionEvent[numEvents]; for (int i = 0; i < numEvents; i++) { TaskAttemptID taskAttemptID = new TaskAttemptID(new TaskID(jobID, true, 0), i); TaskCompletionEvent taskCompletionEvent = new TaskCompletionEvent(0, taskAttemptID, 0, true, TaskCompletionEvent.Status.SUCCEEDED, "tracker:0"); taskCompletionEvents[i] = taskCompletionEvent; }// w w w .j av a2 s . c o m return taskCompletionEvents; }