[
https://issues.apache.org/jira/browse/HDFS-7483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611162#comment-14611162
]
Haohui Mai commented on HDFS-7483:
----------------------------------
{code}
+ public float getPercentUsed() {
+ return DFSUtilClient.getPercentUsed(capacityUsed, capacityTotal);
+ }
+
+ public float getPercentRemaining() {
+ return DFSUtilClient.getPercentRemaining(capacityRemaining,
+ capacityTotal);
+ }
{code}
The client should calculate the percentage which allows more options on
formatting.
{code}
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/header.html
{code}
The duplication is actually by design for now to avoid partially loading pages.
A better approach is to make it a dust template and to precompile it when
building the artifacts, which requires some work on the build infrastructure.
{code}
+ function load_storage_stats() {
+ $.get(
+ '/jmx?qry=Hadoop:service=NameNode,name=BlockStats',
{code}
It should be loaded in the {{load_overview()}} function.
> Display information per tier on the Namenode UI
> -----------------------------------------------
>
> Key: HDFS-7483
> URL: https://issues.apache.org/jira/browse/HDFS-7483
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Attachments: HDFS-7483-001.patch
>
>
> If cluster has different types of storage, it is useful to display the
> storage information per type.
> The information will be available via JMX (HDFS-7390)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)