hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tangshangwen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5051) The RM can't update the Decommissioned Nodes Metric
Date Fri, 06 May 2016 09:13:12 GMT

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

tangshangwen commented on YARN-5051:
------------------------------------

when the nodemanager start will trigger the AddNodeTransition, the node in the NEW state,
will not reduce the value of DecommisionedNMs value.
{code:title=RMNodeImpl.java|borderStyle=solid}
    Rpublic static class AddNodeTransition implements
      SingleArcTransition<RMNodeImpl, RMNodeEvent> {

    @Override
    public void transition(RMNodeImpl rmNode, RMNodeEvent event) {
      // Inform the scheduler
      RMNodeStartedEvent startEvent = (RMNodeStartedEvent) event;
      List<NMContainerStatus> containers = null;

      String host = rmNode.nodeId.getHost();
      if (rmNode.context.getInactiveRMNodes().containsKey(host)) {

        // Old node rejoining
        RMNode previouRMNode = rmNode.context.getInactiveRMNodes().get(host);
        rmNode.context.getInactiveRMNodes().remove(host);
        rmNode.updateMetricsForRejoinedNode(previouRMNode.getState());
      } else {
        ClusterMetrics.getMetrics().incrNumActiveNodes();
{code}

> The RM can't update the Decommissioned Nodes Metric
> ---------------------------------------------------
>
>                 Key: YARN-5051
>                 URL: https://issues.apache.org/jira/browse/YARN-5051
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.7.1
>            Reporter: tangshangwen
>            Assignee: tangshangwen
>         Attachments: rm.png
>
>
> When the RM restart´╝îthe RM will refuse the Decommission NodeManager register, and I
put the NM host removed from exclude_mapred_host file, execute the command
> {noformat}
> yarn rmadmin -refreshNodes
> {noformat} 
> start nodemanager , the decommissioned nodes num can not update



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message