Esempio n. 1
0
 public static TaskCompletionEvent FromYarn(TaskAttemptCompletionEvent newEvent)
 {
     return(new TaskCompletionEvent(newEvent.GetEventId(), FromYarn(newEvent.GetAttemptId
                                                                        ()), newEvent.GetAttemptId().GetId(), newEvent.GetAttemptId().GetTaskId().GetTaskType
                                        ().Equals(TaskType.Map), FromYarn(newEvent.GetStatus()), newEvent.GetMapOutputServerAddress
                                        ()));
 }
Esempio n. 2
0
 public JobTaskAttemptCompletedEvent(TaskAttemptCompletionEvent completionEvent)
     : base(completionEvent.GetAttemptId().GetTaskId().GetJobId(), JobEventType.JobTaskAttemptCompleted
            )
 {
     this.completionEvent = completionEvent;
 }