[
https://issues.apache.org/jira/browse/YARN-4371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093971#comment-15093971
]
Sunil G commented on YARN-4371:
-------------------------------
Thank you [~jlowe] for the input and thank you [~Naganarasimha Garla].
{noformat}
root@sunil-Inspiron-3543:/opt/hadoop/trunk/hadoop-3.0.0-SNAPSHOT/bin# ./yarn
application -kill application_1452608662572_0002 application_1452608662572_0008
application_1452608662572_0003
16/01/12 20:02:12 INFO client.RMProxy: Connecting to ResourceManager at
/127.0.0.1:25001
Application application_1452608662572_0002 has already finished
Application with id 'application_1452608662572_0008' doesn't exist in RM.
Killing application application_1452608662572_0003
16/01/12 20:02:16 INFO impl.YarnClientImpl: Killed application
application_1452608662572_0003
{noformat}
Here I have tried to kill 3 apps (1 running, 1 finished and 1 invalid). As per
latest patch, we can get the exact error as {{Application with id
'application_1452608662572_0008' doesn't exist in RM.}}
Will this be fine here?
bq.I was just pointing out that as it is coded today users can add other
options along with the kill option that are not supported, or potentially
nonsensical like movetoqueu
Yes I agree with this part, its not vulnerable to have some other co-options
along with kill. More validation can be added and it can be ensured that
{{kill}} will be an option which cannot be a sub-options with other commands.
> "yarn application -kill" should take multiple application ids
> -------------------------------------------------------------
>
> Key: YARN-4371
> URL: https://issues.apache.org/jira/browse/YARN-4371
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Tsuyoshi Ozawa
> Assignee: Sunil G
> Attachments: 0001-YARN-4371.patch, 0002-YARN-4371.patch,
> 0003-YARN-4371.patch
>
>
> Currently we cannot pass multiple applications to "yarn application -kill"
> command. The command should take multiple application ids at the same time.
> Each entries should be separated with whitespace like:
> {code}
> yarn application -kill application_1234_0001 application_1234_0007
> application_1234_0012
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)