Varun Saxena commented on YARN-3075:


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
    public Set<String> labels;
    public Resource resource;
    public boolean running;

> 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

Reply via email to