Search code examples
hadoop-yarn

Kill yarn application by Application-Name


I want to create a cron to kill a yarn application (Spark) by it application name. But i found thant yarn application -kill needs an application ID. Is there a solution to kill it by application name, or to get the application ID using the application name.

Thank you


Solution

  • yarn application -list
    

    This will give you a list of the applications, with application ID, running on yarn.