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

Naganarasimha G R commented on YARN-3003:
-----------------------------------------

Hi [~leftnoteasy],
    Yes, my idea was to transpose as a given node can belong to multiple labels 
getting node->label then transposing would be better as there is already 
existing node to label mapping Data structure. 
Further would it be better to support label expression and get the list of 
nodes mapping to it rather than set of labels as input ? May be 
[[email protected]] can describe more about the scenario or usage of this 
interface ?

> Provide API for client to retrieve label to node mapping
> --------------------------------------------------------
>
>                 Key: YARN-3003
>                 URL: https://issues.apache.org/jira/browse/YARN-3003
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: client, resourcemanager
>            Reporter: Ted Yu
>            Assignee: Varun Saxena
>
> Currently YarnClient#getNodeToLabels() returns the mapping from NodeId to set 
> of labels associated with the node.
> Client (such as Slider) may be interested in label to node mapping - given 
> label, return the nodes with this label.



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

Reply via email to