diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html index 7ad38d784d4..3d9ca4270e0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html @@ -106,7 +106,8 @@ {/if} -{@if cond="{NumberOfMissingBlocks} > 0"} +{@eq key=nnstat.State value="active"} + {@if cond="{NumberOfMissingBlocks} > 0"}
@@ -119,7 +120,8 @@

Please check the logs or run fsck in order to identify the missing blocks.{@if cond="{NumberOfSnapshottableDirs} > 0"} Please run fsck with -includeSnapshots in order to see detailed reports about snapshots.{/if} See the Hadoop FAQ for common causes and potential solutions.

-{/if} + {/if} +{/eq} {/nn} @@ -173,10 +175,13 @@ Dead Nodes{NumDeadDataNodes} (Decommissioned: {NumDecomDeadDataNodes}) Decommissioning Nodes{NumDecommissioningDataNodes} Total Datanode Volume Failures{VolumeFailuresTotal} ({EstimatedCapacityLostTotal|fmt_bytes}) - Number of Under-Replicated Blocks{UnderReplicatedBlocks} - Number of Blocks Pending Deletion{PendingDeletionBlocks} + {@eq key=nnstat.State value="active"} + Number of Under-Replicated Blocks{UnderReplicatedBlocks} + Number of Blocks Pending Deletion{PendingDeletionBlocks} + {/eq} Block Deletion Start Time{BlockDeletionStartTime|date_tostring} {/fs} +