LOG.info("taskid is :" + taskid);
if (i == 0) {
taskIdKilled = taskid.toString();
taskAttemptID = new TaskAttemptID(taskid, i);
LOG.info("taskAttemptid going to be killed is : " + taskAttemptID);
(jobClient.new NetworkedJob(jInfo.getStatus())).killTask(
taskAttemptID, true);
checkTaskCompletionEvent(taskAttemptID, jInfo);
break;
} else {
if (taskIdKilled.equals(taskid.toString())) {
taskAttemptID = new TaskAttemptID(taskid, i);
LOG
.info("taskAttemptid going to be killed is : "
+ taskAttemptID);
(jobClient.new NetworkedJob(jInfo.getStatus())).killTask(
taskAttemptID, true);
checkTaskCompletionEvent(taskAttemptID, jInfo);
break;
}
}