Exemplo n.º 1
0
 public static String toString(TaskAttemptId taid) {
   return _join(
       "attempt",
       taid.getTaskId().getJobId().getAppId().getClusterTimestamp(),
       taid.getTaskId().getJobId().getAppId().getId(),
       taid.getTaskId().getJobId().getId(),
       taskSymbol(taid.getTaskId().getTaskType()),
       taid.getTaskId().getId(),
       taid.getId());
 }
Exemplo n.º 2
0
 @SuppressWarnings("unchecked")
 @Override
 protected void attemptLaunched(TaskAttemptId attemptID) {
   if (attemptID.getTaskId().getId() == 0 && attemptID.getId() == 0) {
     getContext()
         .getEventHandler()
         .handle(new TaskAttemptEvent(attemptID, TaskAttemptEventType.TA_FAILMSG));
   } else {
     getContext()
         .getEventHandler()
         .handle(new TaskAttemptEvent(attemptID, TaskAttemptEventType.TA_DONE));
   }
 }
 @Override
 protected void attemptLaunched(TaskAttemptId attemptID) {
   if (attemptID.getTaskId().getId() == 0 && attemptID.getId() == 0) {
     // check if it is first task's first attempt
     // send the Fail event
     getContext()
         .getEventHandler()
         .handle(new TaskAttemptEvent(attemptID, TaskAttemptEventType.TA_FAILMSG));
   } else {
     getContext()
         .getEventHandler()
         .handle(new TaskAttemptEvent(attemptID, TaskAttemptEventType.TA_DONE));
   }
 }