[ 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org