[
https://issues.apache.org/jira/browse/YARN-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280427#comment-14280427
]
Varun Saxena commented on YARN-3003:
------------------------------------
Regarding first point, if we do full regex match this would mean iterating over
all the entries. We can probably have a trie as an additonal data structure to
store labels to nodes mappings for this and support prefix match. But
realistically speaking how many node labels can we have ? Can we have thousands
of node labels ? Regex match is only useful if we have a large number of node
labels.
> 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)