[ 
https://issues.apache.org/jira/browse/HADOOP-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Enis Soztutar updated HADOOP-1351:
----------------------------------

    Attachment: killTask_v1.9.patch

After a discussion with Arun in #hadoop, we have decided the following 
 - It may cause to log killing tasks preemptive, so we log a request to kill 
the task, than log the task as killed once TT reports so (two log entries per 
action).
- changed {{JobSubmissionProtocol#killTask()}} to return {{boolean}} to 
indicate success. Of course since killing task is async, true may not mean the 
task is really killed if the cluster is in an unstable state. 
- adding user name to kill task log/diagnostic message. (not implemented, 
taking user name as a parameter in JobSubmissionProtocol did not seem good 
enough ). 
- passing the cause to kill the job to TT, in order to log it (not implemented 
since again, i am not fond of extending function signatures just to improve 
logging)
- change {{JobSubmissionProtocol#killJob() to return boolean}} - Will open a 
new issue for this. 

> 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.15.0
>            Reporter: Owen O'Malley
>            Assignee: Enis Soztutar
>             Fix For: 0.15.0
>
>         Attachments: killTask_v1.0.1.patch, killTask_v1.2.patch, 
> killTask_v1.3.patch, killTask_v1.4.patch, killTask_v1.5.patch, 
> killTask_v1.6.patch, killTask_v1.7.patch, killTask_v1.8.patch, 
> killTask_v1.9.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.

Reply via email to