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

Wangda Tan commented on YARN-5256:
----------------------------------

[~Naganarasimha], 
Sorry for the late comment, I totally missed this JIRA previously.

I just quickly discussed with [~sunilg] about this. Do you think if adding the 
new object is necessary? I think it might be better to reuse the existing 
object ({{NodeLabelInfo}}).

By default we will return resources of the label, such as total/used resource. 
And nodes associated to the label will be returned only if requested.

So we will add used/total resource and list of nodeIds to {{NodeLabelInfo}}.

For the REST end point, what we can do is:
- For the ("/get-node-labels") call, add an optional parameter to indicate if 
we need to return associated nodes.
- Add a new ("/get-node-labels/{node-label}") call, only return information of 
a given label, and have an optional param to indicate if we need to return 
associated nodes.
- In above APIs, return used/total resource.

Sounds like a plan?

> Add REST endpoint to support detailed NodeLabel Informations
> ------------------------------------------------------------
>
>                 Key: YARN-5256
>                 URL: https://issues.apache.org/jira/browse/YARN-5256
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: webapp
>            Reporter: Sunil G
>            Assignee: Sunil G
>         Attachments: YARN-5256-YARN-3368.1.patch, 
> YARN-5256-YARN-3368.2.patch, YARN-5256.0001.patch, YARN-5256.0002.patch, 
> YARN-5256.0003.patch
>
>
> Add a new REST endpoint to fetch few more detailed information about node 
> labels such as resource, list of nodes etc.



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

---------------------------------------------------------------------
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