Support Questions

Find answers, ask questions, and share your expertise

Not able to kill running yarn applications from resource manager "kill application" option in HDP 3.0

avatar
New Contributor

Not able to kill running yarn applications from resource manager "kill application" option in HDP 3.0. Whenever clicking on that options it ask for confirmation but than do nothing.

5 REPLIES 5

avatar
Super Collaborator

Hi @Kunal Agarwal,

you can kill the applications by using yarn command line options.

syntax: yarn application -kill <application id>

avatar
Rising Star

Hi @Kunal Agarwal,

else you can kill that yarn application with process ID.

ps -ef | grep <application_id>

[it gives process id]

Kill -9 <process Id>

Thanks,

Anji

avatar
Master Mentor

@Kunal Agarwal

The proper way is to locate the application ID in RM Ui and run the below command

$ yarn application -kill application_id

HTH

avatar
Contributor

Hi @Kunal Agarwal

Can you check if below property is enable of not ?

  • You can login to Ambari and go to YARN Configs page.
  • Search yarn.resourcemanager.webapp.ui-actions.enabled If it exists, change the value to True.
  • If it does not exist, clear the filter and add it from ‘Custom yarn-site’ then ‘Add Property’ and set the value to true.
  • Save and restart.

avatar
New Contributor

Hello @kunal_agarwal 
If you are using Knox Gateway, it may be the bug, presented here

To fix it you could apply this changes  to file:

${KNOX_GATEWAY_HOME}/data/services/yarnui/2.7.0/rewrite.xml

to rewrite rules of yarnui service