Java Code Examples for org.apache.hadoop.mapreduce.v2.api.records.TaskState#KILLED
The following examples show how to use
org.apache.hadoop.mapreduce.v2.api.records.TaskState#KILLED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobImpl.java From hadoop with Apache License 2.0 | 6 votes |
@Override public JobStateInternal transition(JobImpl job, JobEvent event) { job.completedTaskCount++; LOG.info("Num completed Tasks: " + job.completedTaskCount); JobTaskEvent taskEvent = (JobTaskEvent) event; Task task = job.tasks.get(taskEvent.getTaskID()); if (taskEvent.getState() == TaskState.SUCCEEDED) { taskSucceeded(job, task); } else if (taskEvent.getState() == TaskState.FAILED) { taskFailed(job, task); } else if (taskEvent.getState() == TaskState.KILLED) { taskKilled(job, task); } return checkJobAfterTaskCompletion(job); }
Example 2
Source File: JobImpl.java From big-c with Apache License 2.0 | 6 votes |
@Override public JobStateInternal transition(JobImpl job, JobEvent event) { job.completedTaskCount++; LOG.info("Num completed Tasks: " + job.completedTaskCount); JobTaskEvent taskEvent = (JobTaskEvent) event; Task task = job.tasks.get(taskEvent.getTaskID()); if (taskEvent.getState() == TaskState.SUCCEEDED) { taskSucceeded(job, task); } else if (taskEvent.getState() == TaskState.FAILED) { taskFailed(job, task); } else if (taskEvent.getState() == TaskState.KILLED) { taskKilled(job, task); } return checkJobAfterTaskCompletion(job); }
Example 3
Source File: TaskImpl.java From hadoop with Apache License 2.0 | 5 votes |
private static TaskState getExternalState(TaskStateInternal smState) { if (smState == TaskStateInternal.KILL_WAIT) { return TaskState.KILLED; } else { return TaskState.valueOf(smState.name()); } }
Example 4
Source File: TaskImpl.java From big-c with Apache License 2.0 | 5 votes |
private static TaskState getExternalState(TaskStateInternal smState) { if (smState == TaskStateInternal.KILL_WAIT) { return TaskState.KILLED; } else { return TaskState.valueOf(smState.name()); } }
Example 5
Source File: CompletedTask.java From hadoop with Apache License 2.0 | 4 votes |
@Override public TaskState getState() { return taskInfo.getTaskStatus() == null ? TaskState.KILLED : TaskState .valueOf(taskInfo.getTaskStatus()); }
Example 6
Source File: CompletedTask.java From big-c with Apache License 2.0 | 4 votes |
@Override public TaskState getState() { return taskInfo.getTaskStatus() == null ? TaskState.KILLED : TaskState .valueOf(taskInfo.getTaskStatus()); }