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

Zhijie Shen commented on YARN-1461:
-----------------------------------

bq. I am sorry, I didn't quite get that. Are you suggesting not having methods 
to get and set Scope in GetApplicationsRequest? If yes, how do you propose we 
allow users to set the Scope to the non-default value?

No, I mean the generated proto class is not supposed to be used in API records. 
Usually, what we do is to define a Java enum, use it in API records, and map it 
to the corresponding proto class. The mapping is invoked in PBImpl of the API 
records. Please take a look at YarnApplicationState and 
YarnApplicationStateProto. 

> RM API and RM changes to handle tags for running jobs
> -----------------------------------------------------
>
>                 Key: YARN-1461
>                 URL: https://issues.apache.org/jira/browse/YARN-1461
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.2.0
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: yarn-1461-1.patch, yarn-1461-2.patch, yarn-1461-3.patch, 
> yarn-1461-4.patch, yarn-1461-5.patch, yarn-1461-6.patch, yarn-1461-6.patch, 
> yarn-1461-7.patch, yarn-1461-8.patch, yarn-1461-9.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to