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

Wangda Tan commented on YARN-4106:
----------------------------------

[~bibinchundatt],
Thanks for update,
Some comments: 
- Not sure if I completely understand the logic. {{updateNodeLabelsFromConfig}} 
of {{ConfigurationNodeLabelsProvider}} is invoked only when TimerTask 
scheduled. And TimerTask of AbstractNodeLabelsProvider delayed started for 
{{intervalTime}}. Does this mean we cannot get labels when initializing 
ConfigurationNodeLabelsProvider? If so, I think we need to call 
updateNodeLabelsFromConfig in serviceInit of ConfigurationNodeLabelsProvider. 
(Another choice is make the delay time from intervalTime to 0, but it runs in 
another thread, so the behavior is undetermined. To make it simple, I suggest 
to add it in serviceInit).
- Add a test for new behavior of this JIRA?

> NodeLabels for NM in distributed mode is not updated even after 
> clusterNodelabel addition in RM 
> ------------------------------------------------------------------------------------------------
>
>                 Key: YARN-4106
>                 URL: https://issues.apache.org/jira/browse/YARN-4106
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>            Priority: Critical
>         Attachments: 0001-YARN-4106.patch, 0002-YARN-4106.patch, 
> 0003-YARN-4106.patch, 0004-YARN-4106.patch
>
>
> NodeLabels for NM in distributed mode is not updated even after 
> clusterNodelabel addition in RM
> Steps to reproduce
> ===============
> # Configure nodelabel in distributed mode
> yarn.node-labels.configuration-type=distributed
> provider = config
> yarn.nodemanager.node-labels.provider.fetch-interval-ms=120000ms
> # Start RM the NM
> # Once NM is registration is done add nodelabels in RM
> Nodelabels not getting updated in RM side 



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

Reply via email to