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

Vinod Kumar Vavilapalli updated MAPREDUCE-3054:
-----------------------------------------------

    Status: Open  (was: Patch Available)

Looked at the patch. Some questions and comments on the approach itself.
 - With the patch, YarnRunner sends a kill to AM and also a killJob signal to 
RM in *all* cases. So in all the cases, AM may not be able to gracefully kill 
itself and write the history file. Absence of history file for all the killed 
jobs is a broken user experience IMHO. I think we should force-kill on the RM 
side only when needed.
    -- The implementation could be something like this: Check the Application 
state on RM, if it is running, send a kill-signal to the AM otherwise 
force-terminate on the RM. Sure, there are corner cases where the client 
obtains a non-running state, but by the time it sends a force-terminate signal, 
the app may become running, but losing the (little) information in those rare 
cases should be bearable.
 - Also jobs which are in the queue and get killed have no record in the 
system( ! ) (except for the fleeting cache in RM). I can't think of any 
solution other than MAPREDUCE-3061.
 - I am tending to rename _ClientRMProtocol.finishApplication()_ to 
_ClientRMProtocol.forceTerminateApplication()_ to better reflect its semantics. 
Thoughts?

> Unable to kill submitted jobs
> -----------------------------
>
>                 Key: MAPREDUCE-3054
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3054
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Siddharth Seth
>            Assignee: Mahadev konar
>            Priority: Blocker
>             Fix For: 0.23.0
>
>         Attachments: MAPREDUCE-3054.patch, MAPREDUCE-3054.patch, 
> MAPREDUCE-3054.patch, MAPREDUCE-3054.patch
>
>
> Found by Philip Su
> The "mapred job -kill" command
> appears to succeed, but listing the jobs again shows that the job supposedly 
> killed is still there. 
> {code}
> mapred job -list
> Total jobs:2
> JobId   State   StartTime       UserName        Queue   Priority        
> SchedulingInfo
> job_1316203984216_0002  PREP    1316204924937   hadoopqa        default NORMAL
> job_1316203984216_0001  PREP    1316204031206   hadoopqa        default NORMAL
> mapred job -kill job_1316203984216_0002
> Killed job job_1316203984216_0002
> mapred job -list
> Total jobs:2
> JobId   State   StartTime       UserName        Queue   Priority        
> SchedulingInfo
> job_1316203984216_0002  PREP    1316204924937   hadoopqa        default NORMAL
> job_1316203984216_0001  PREP    1316204031206   hadoopqa        default NORMAL
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to