You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/07/21 02:45:00 UTC
[jira] [Commented] (HDFS-12176) dfsadmin shows DFS Used%: NaN% if
the cluster has zero block.
[ https://issues.apache.org/jira/browse/HDFS-12176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095698#comment-16095698 ]
Weiwei Yang commented on HDFS-12176:
------------------------------------
Hi [~jojochuang]
I did a quick check. NaN was from {{0/(double)0}}, if {{presentCapacity}} is 0, it should directly return 0, instead of letting it divide by zero. Let me submit a simple patch for this.
> dfsadmin shows DFS Used%: NaN% if the cluster has zero block.
> -------------------------------------------------------------
>
> Key: HDFS-12176
> URL: https://issues.apache.org/jira/browse/HDFS-12176
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Wei-Chiu Chuang
> Priority: Trivial
>
> This is rather a non-issue, but thought I should file it anyway.
> I have a test cluster with just NN fsimage, no DN, no blocks, and dfsadmin shows:
> {noformat}
> $ hdfs dfsadmin -report
> Configured Capacity: 0 (0 B)
> Present Capacity: 0 (0 B)
> DFS Remaining: 0 (0 B)
> DFS Used: 0 (0 B)
> DFS Used%: NaN%
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org