[ https://issues.apache.org/jira/browse/HADOOP-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512928 ]
Enis Soztutar commented on HADOOP-1351: --------------------------------------- >I still think we need to mark user-killed tasks as FAILED rather than KILLED >to ensure this penalizes the job & hence the user... Sorry but I must disagree once more. The use case that motivated me to implement killing tasks was that sometimes some tasks fail to initialize for a while due to network latency, so one must literally connect to the machine that runs the task and literally kill the task. Another use case might be that a large job takes all available maps, but we have a small high priority job with few reduces, so we kill some of the maps, to make room for the new job. Other than that I so not expect some one to track and kill the tasks that seem to run slow. We need to store the info that some task is killed so that we can send a {{KillTaskAction}} to the TT. Considering current implementation handling status info about the tasks is always done via {{JobInProgress}} 's methods. So the chain of responsibility from JobInProgress to TaskInProgress is already broken. Honestly i intend to retain this structure for this patch( rather than marking the task as killed immediately ), and delegate the much serious work to HADOOP-869. > Want to kill a particular task or attempt > ----------------------------------------- > > Key: HADOOP-1351 > URL: https://issues.apache.org/jira/browse/HADOOP-1351 > Project: Hadoop > Issue Type: New Feature > Components: mapred > Affects Versions: 0.14.0 > Reporter: Owen O'Malley > Assignee: Enis Soztutar > Fix For: 0.14.0 > > Attachments: killTask_v1.0.1.patch, killTask_v1.2.patch, > killTask_v1.3.patch > > > It would be convenient to be able to kill a particular task or attempt from > the command line. It would look like: > bin/hadoop job -kill-task tip_0001_m_000000 > bin/hadoop job -kill-attempt task_0001_m_000000_0 > This would allow the user to tell the system to stop a particular task or > attempt without having to restart a task tracker. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.