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

Naganarasimha G R commented on YARN-2495:
-----------------------------------------

Hi [~john.jian.fang],
Well this jira is followed by YARN-2729, where in labels got from the script  
are passed as part of heartbeat which makes the distributed label configuration 
as dynamic. Also as part of this jira we have tried to ensure that only when 
there is change in labels we send and if not we do not send static lables to 
each heartbeat.
 And for your case if cluster controller process wants to label a node so that 
it can graceful shrink can be done in 2 ways:
* Use REST API and change the label of the node to  some unique label which is 
not visible to other users
* After YARN-2729, may be you can have some script which has appropriate logic 
to update RM with some some unique label when it wants to shrink itself 
gracefully.
Hope i have addressed your scenario

> Allow admin specify labels from each NM (Distributed configuration)
> -------------------------------------------------------------------
>
>                 Key: YARN-2495
>                 URL: https://issues.apache.org/jira/browse/YARN-2495
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>            Reporter: Wangda Tan
>            Assignee: Naganarasimha G R
>         Attachments: YARN-2495.20141023-1.patch, YARN-2495.20141024-1.patch, 
> YARN-2495.20141030-1.patch, YARN-2495.20141031-1.patch, 
> YARN-2495.20141119-1.patch, YARN-2495.20141126-1.patch, 
> YARN-2495.20141204-1.patch, YARN-2495.20141208-1.patch, 
> YARN-2495.20150305-1.patch, YARN-2495.20150309-1.patch, 
> YARN-2495.20150318-1.patch, YARN-2495.20150320-1.patch, 
> YARN-2495.20150321-1.patch, YARN-2495.20150324-1.patch, 
> YARN-2495_20141022.1.patch
>
>
> Target of this JIRA is to allow admin specify labels in each NM, this covers
> - User can set labels in each NM (by setting yarn-site.xml (YARN-2923) or 
> using script suggested by [~aw] (YARN-2729) )
> - NM will send labels to RM via ResourceTracker API
> - RM will set labels in NodeLabelManager when NM register/update labels



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to