hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuan Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-727) ClientRMProtocol.getAllApplications should accept ApplicationType as a parameter
Date Thu, 20 Jun 2013 23:17:21 GMT

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

Xuan Gong commented on YARN-727:

bq.appType_opt.setArgs(Option.UNLIMITED_VALUES); Is there a reason to set this? What happens
if this is not set?

This function sets the number of args which the option can have. The default value is 1, that
means the option can only have one arg. 
In our case, if we type yarn application -list -appTypes YARN,MAPREDUCE, when we call cliParser.getOptionValues("appTypes"),
we will get an array which contains one value: {YARN,MAPREDUCE} back. But what we expect is
an array which contains two values {YARN} and {MAPREDUCE}.

Also, we do not know how many appTypes we will give in one command, so Option.UNLIMITED_VALUES
is used here. It means that we can type as many appTypes as possible in one command and it
will parse all of them.
> ClientRMProtocol.getAllApplications should accept ApplicationType as a parameter
> --------------------------------------------------------------------------------
>                 Key: YARN-727
>                 URL: https://issues.apache.org/jira/browse/YARN-727
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>    Affects Versions: 2.1.0-beta
>            Reporter: Siddharth Seth
>            Assignee: Xuan Gong
>         Attachments: YARN-727.10.patch, YARN-727.11.patch, YARN-727.12.patch, YARN-727.13.patch,
YARN-727.14.patch, YARN-727.15.patch, YARN-727.1.patch, YARN-727.2.patch, YARN-727.3.patch,
YARN-727.4.patch, YARN-727.5.patch, YARN-727.6.patch, YARN-727.7.patch, YARN-727.8.patch,
> Now that an ApplicationType is registered on ApplicationSubmission, getAllApplications
should be able to use this string to query for a specific application type.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message