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

Wangda Tan commented on YARN-3521:
----------------------------------

To make REST API compatible with CLI as well as YarnClient, I suggest to make 
following changes:
1) NodeLabelsInfo -> NodeLabelsName
2) Create a new NodeLabelsInfo contains String name and boolean exclusivity, 
potentially more fields in the future.
3) Only change add/getClusterNodeLabels to use the new NodeLabelsInfo, and 
other uses NodeLabelsName.

Thoughts?

> Support return structured NodeLabel objects in REST API when call 
> getClusterNodeLabels
> --------------------------------------------------------------------------------------
>
>                 Key: YARN-3521
>                 URL: https://issues.apache.org/jira/browse/YARN-3521
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, client, resourcemanager
>            Reporter: Wangda Tan
>            Assignee: Sunil G
>
> In YARN-3413, yarn cluster CLI returns NodeLabel instead of String, we should 
> make the same change in REST API side to make them consistency.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to