[
https://issues.apache.org/jira/browse/HDFS-8670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619713#comment-14619713
]
Ming Ma commented on HDFS-8670:
-------------------------------
Thanks [~andreina] for the patch!
* Maybe we should exclude decommission_inprogress node as well given the
balancer excludes them.
* Any reason it changes to call fetchDatanodes with parameter
{{removeDecommissionNode}} set to false?
* In test code, you can use {{JSON.parse}} to convert String to Map.
* In test code, can you remove {{System.out.println}} statement?
> Better to exclude decommissioned nodes for namenode NodeUsage JMX
> -----------------------------------------------------------------
>
> Key: HDFS-8670
> URL: https://issues.apache.org/jira/browse/HDFS-8670
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ming Ma
> Assignee: J.Andreina
> Attachments: HDFS-8670.1.patch, HDFS-8670.2.patch
>
>
> The namenode NodeUsage JMX has Max, Median, Min and Standard Deviation of
> DataNodes usage, it currently includes decommissioned nodes for the
> calculation. However, given balancer doesn't work on decommissioned nodes and
> sometimes we could have nodes stay in decommissioned states for a long time;
> it might be better to exclude decommissioned nodes for the metrics
> calculation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)