hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wangda Tan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3003) Provide API for client to retrieve label to node mapping
Date Wed, 07 Jan 2015 22:21:35 GMT

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

Wangda Tan commented on YARN-3003:
----------------------------------

Relationship between NMs and labels is more than a Bidirectional Map. We have hierarchy for
NMs: now YARN supports launching multiple node managers on a same host, so we have host->list<NM>.
And for node labels administration propose, admin can set labels on a host (affects all NMs
on that host) OR set labels on a single NM (affects the NM only).

I suggest to store nodes on label in NodeLabel class. For now we can store all related nodes,
and in the future, we can extend it to support fetch running NMs associated to a given label.

Thanks,

> 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)

Mime
View raw message