HDFS-9065. Include commas on # of files, blocks, total filesystem objects in NN Web UI. Contributed by Daniel Templeton.

This commit is contained in:
Haohui Mai 2015-09-14 20:26:56 -07:00
parent 76957a485b
commit d777757d21
4 changed files with 11 additions and 1 deletions

View File

@ -912,6 +912,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9010. Replace NameNode.DEFAULT_PORT with HdfsClientConfigKeys.
DFS_NAMENODE_RPC_PORT_DEFAULT config key. (Mingliang Liu via wheat9)
HDFS-9065. Include commas on # of files, blocks, total filesystem objects
in NN Web UI. (Daniel Templeton via wheat9)
OPTIMIZATIONS
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

View File

@ -145,7 +145,7 @@
<p>
{#fs}
{FilesTotal} files and directories, {BlocksTotal} blocks = {@math key="{FilesTotal}" method="add" operand="{BlocksTotal}"/} total filesystem object(s).
{FilesTotal|fmt_number} files and directories, {BlocksTotal|fmt_number} blocks = {ObjectsTotal|fmt_number} total filesystem object(s).
{#helper_fs_max_objects/}
{/fs}
</p>

View File

@ -103,6 +103,9 @@
b.capacityUsedPercentage = b.capacityUsed * 100.0 / b.capacityTotal;
b.capacityRemainingPercentage = b.capacityRemaining * 100.0 / b.capacityTotal;
}
data.fs.ObjectsTotal = data.fs.FilesTotal + data.fs.BlocksTotal;
render();
}),
function (url, jqxhr, text, err) {

View File

@ -92,6 +92,10 @@
'helper_to_acl_bit': function (v) {
return v ? '+' : "";
},
'fmt_number': function (v) {
return v.toLocaleString();
}
};
$.extend(dust.filters, filters);