[
https://issues.apache.org/jira/browse/YARN-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055734#comment-15055734
]
Mohammad Shahid Khan commented on YARN-4441:
--------------------------------------------
Hi [#Varun Vasudev] why to send the kill request if the application is already
finished?
Please check the ApplicationCLI killApplication API , we have similar check
before invoking the RPC call to kill the app.
{Code}
if (appReport.getYarnApplicationState() == YarnApplicationState.FINISHED
|| appReport.getYarnApplicationState() == YarnApplicationState.KILLED
|| appReport.getYarnApplicationState() == YarnApplicationState.FAILED) {
sysout.println("Application " + applicationId + " has already finished ");
} else {
sysout.println("Killing application " + applicationId);
client.killApplication(appId);
}
{Code}
> Kill application request from the webservice(ui) is showing success even for
> the finished applications
> ------------------------------------------------------------------------------------------------------
>
> Key: YARN-4441
> URL: https://issues.apache.org/jira/browse/YARN-4441
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Mohammad Shahid Khan
> Assignee: Mohammad Shahid Khan
>
> If the application is already finished ie either failled, killed, or succeded
> the kill operation should not be logged as success.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)