[ https://issues.apache.org/jira/browse/YARN-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298061#comment-14298061 ]
Varun Saxena commented on YARN-3075: ------------------------------------ [~leftnoteasy], bq. If we have node id in each Node, you can just loop nms.values() instead of looping the nms.entrySet(). Just a very minor suggestion. We do not have node id in Node. Below 3 fields exist in Node class {code} public Set<String> labels; public Resource resource; public boolean running; {code} > 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, YARN-3075.002.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)