[ 
https://issues.apache.org/jira/browse/OOZIE-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16323885#comment-16323885
 ] 

Mate Juhasz commented on OOZIE-3061:
------------------------------------

What do you think of this solution?

{noformat}
if 
(YarnApplicationState.KILLED.equals(yarnClient.getApplicationReport(app).getYarnApplicationState()))
 {
       System.out.println("Application [" + app + "] already killed.");
} else {
       yarnClient.killApplication(app);
        System.out.println("Done");
}
{noformat}


> Kill only those child jobs which are not already killed
> -------------------------------------------------------
>
>                 Key: OOZIE-3061
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3061
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Satish Subhashrao Saley
>            Priority: Trivial
>              Labels: newbie, newbiee
>
> Here we kill all child jobs. 
> https://github.com/apache/oozie/blob/master/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java#L265
> We should check before killing for already killed application.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to