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

Eric Payne commented on YARN-8634:
----------------------------------

 [~BilwaST], I tam also unsure whether or not this feature is necessary.

Why wouldn't something like the following work:
{code:java}
yarn application -list | \
  egrep -v '^Total|Application-Id' | \
  sed 's/       .*$//' | \
  sort -nr | \
  while read an
  do
    yarn application -kill $an
  done
{code}

> Implement yarn cmd for killing all applications in the cluster
> --------------------------------------------------------------
>
>                 Key: YARN-8634
>                 URL: https://issues.apache.org/jira/browse/YARN-8634
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Bilwa S T
>            Assignee: Bilwa S T
>            Priority: Major
>         Attachments: YARN-8634-001.patch
>
>
> If we want to kill all running applications then currently we need to give 
> all application Id's. So instead we can have a command which can kill all 
> applications. 
> Command would be *yarn application -killall*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to