/** * Returns task id. * @return task id */ public TaskAttemptID getTaskAttemptId() { return TaskAttemptID.downgrade(super.getTaskAttemptId()); }
/** * Get the running task attempt IDs for this task */ public Collection<TaskAttemptID> getRunningTaskAttempts() { Collection<TaskAttemptID> attempts = new ArrayList<TaskAttemptID>(); for (org.apache.hadoop.mapreduce.TaskAttemptID id : super.getRunningTaskAttemptIds()) { attempts.add(TaskAttemptID.downgrade(id)); } return attempts; }
/** * Get the attempt ID that took this task to completion */ public TaskAttemptID getSuccessfulTaskAttempt() { return TaskAttemptID.downgrade(super.getSuccessfulTaskAttemptId()); } /**
/** * Get the attempt ID that took this task to completion */ public TaskAttemptID getSuccessfulTaskAttempt() { return TaskAttemptID.downgrade(super.getSuccessfulTaskAttemptId()); } /**
/** * Returns task id. * @return task id */ public TaskAttemptID getTaskAttemptId() { return TaskAttemptID.downgrade(super.getTaskAttemptId()); }
/** * Get the attempt ID that took this task to completion */ public TaskAttemptID getSuccessfulTaskAttempt() { return TaskAttemptID.downgrade(super.getSuccessfulTaskAttemptId()); } /**
/** * Get the attempt ID that took this task to completion */ public TaskAttemptID getSuccessfulTaskAttempt() { return TaskAttemptID.downgrade(super.getSuccessfulTaskAttemptId()); } /**
/** * Get the attempt ID that took this task to completion */ public TaskAttemptID getSuccessfulTaskAttempt() { return TaskAttemptID.downgrade(super.getSuccessfulTaskAttemptId()); } /**
/** * Get the running task attempt IDs for this task */ public Collection<TaskAttemptID> getRunningTaskAttempts() { Collection<TaskAttemptID> attempts = new ArrayList<TaskAttemptID>(); for (org.apache.hadoop.mapreduce.TaskAttemptID id : super.getRunningTaskAttemptIds()) { attempts.add(TaskAttemptID.downgrade(id)); } return attempts; }
/** * Get the running task attempt IDs for this task */ public Collection<TaskAttemptID> getRunningTaskAttempts() { Collection<TaskAttemptID> attempts = new ArrayList<TaskAttemptID>(); for (org.apache.hadoop.mapreduce.TaskAttemptID id : super.getRunningTaskAttemptIds()) { attempts.add(TaskAttemptID.downgrade(id)); } return attempts; }
/** * Returns task id. * @return task id */ public TaskAttemptID getTaskAttemptId() { return TaskAttemptID.downgrade(super.getTaskAttemptId()); }
/** * @see org.apache.hadoop.mapreduce.protocol.ClientProtocol#killTask(org.apache.hadoop.mapreduce.TaskAttemptID, * boolean) */ @Override public synchronized boolean killTask( org.apache.hadoop.mapreduce.TaskAttemptID taskid, boolean shouldFail) throws IOException { return killTask(TaskAttemptID.downgrade(taskid), shouldFail); }
/** * Returns task id. * @return task id */ public TaskAttemptID getTaskAttemptId() { return TaskAttemptID.downgrade(super.getTaskAttemptId()); }
/** * Kill indicated task attempt. * * @param taskId the id of the task to be terminated. * @throws IOException */ public void killTask(TaskAttemptID taskId) throws IOException { ensureState(JobState.RUNNING); info.killTask(org.apache.hadoop.mapred.TaskAttemptID.downgrade(taskId), false); }
/** * Fail indicated task attempt. * * @param taskId the id of the task to be terminated. * @throws IOException */ public void failTask(TaskAttemptID taskId) throws IOException { ensureState(JobState.RUNNING); info.killTask(org.apache.hadoop.mapred.TaskAttemptID.downgrade(taskId), true); }
static TaskCompletionEvent downgrade( org.apache.hadoop.mapreduce.TaskCompletionEvent event) { return new TaskCompletionEvent(event.getEventId(), TaskAttemptID.downgrade(event.getTaskAttemptId()),event.idWithinJob(), event.isMapTask(), Status.valueOf(event.getStatus().name()), event.getTaskTrackerHttp()); } /**
@Private public static TaskCompletionEvent downgrade( org.apache.hadoop.mapreduce.TaskCompletionEvent event) { return new TaskCompletionEvent(event.getEventId(), TaskAttemptID.downgrade(event.getTaskAttemptId()),event.idWithinJob(), event.isMapTask(), Status.valueOf(event.getStatus().name()), event.getTaskTrackerHttp()); } /**
@Private public static TaskCompletionEvent downgrade( org.apache.hadoop.mapreduce.TaskCompletionEvent event) { return new TaskCompletionEvent(event.getEventId(), TaskAttemptID.downgrade(event.getTaskAttemptId()),event.idWithinJob(), event.isMapTask(), Status.valueOf(event.getStatus().name()), event.getTaskTrackerHttp()); } /**
@Private public static TaskCompletionEvent downgrade( org.apache.hadoop.mapreduce.TaskCompletionEvent event) { return new TaskCompletionEvent(event.getEventId(), TaskAttemptID.downgrade(event.getTaskAttemptId()),event.idWithinJob(), event.isMapTask(), Status.valueOf(event.getStatus().name()), event.getTaskTrackerHttp()); } /**
@Private public static TaskCompletionEvent downgrade( org.apache.hadoop.mapreduce.TaskCompletionEvent event) { return new TaskCompletionEvent(event.getEventId(), TaskAttemptID.downgrade(event.getTaskAttemptId()),event.idWithinJob(), event.isMapTask(), Status.valueOf(event.getStatus().name()), event.getTaskTrackerHttp()); } /**