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

Wangda Tan commented on YARN-3075:
----------------------------------

bq. Right now, when we getLabelsToNodes we simply query labelCollections. If we 
change like above, we will have to query nodeCollections as well to find out 
what all nodes are associated with the host stored.
Good point! Thanks for reminding. I think It will be inefficient if we need 
query nodeCollections when get nodes associated with label. I prefer to keep it 
as what you suggested, store all related node-ids (instead of host-only in some 
cases) to NodeLabel.

> NodeLabelsManager implementation to retrieve label to node mapping
> ------------------------------------------------------------------
>
>                 Key: YARN-3075
>                 URL: https://issues.apache.org/jira/browse/YARN-3075
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.7.0
>            Reporter: Varun Saxena
>            Assignee: Varun Saxena
>         Attachments: YARN-3075.001.patch
>
>




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

Reply via email to