code: public void killTask(TaskAttemptID taskId) throws IOException {
      ensureState(JobState.RUNNING);
      info.killTask(org.apache.hadoop.mapred.TaskAttemptID.downgrade(taskId),
                    false);
    }
docs: Kill indicated task attempt.
  
  @param taskId the id of the task to be terminated.
  @throws IOException