Naganarasimha G R commented on YARN-3003:

Hi [~leftnoteasy] & [~varun_saxena]
There are 2 concerns :
# If the intention of the using this interface by the clients is to form the 
label expression for the application submission, then better to support this 
interface to accept a label expression and return the nodes matching the node 
labels expression itself right? may be in future users might require an 
approach to get nodes matching a label expression to configure for a queue or 
an application, so i feel better to support for expression itself. Please 
provide your opinion
# If they want to only retrieve the label-> nodes mapping, then is it good to 
maintain all the node information in the NodeLabel class and ensure consistency 
on modifications ? This data kept in NodeLabel class  will be used only by this 
interface and only If the client is repeatedly using this interface then it 
makes sense(good performance) to store this mapping if not it will be just 
lying in memory

> 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

Reply via email to