From e4313e7e4725261b652dd7202048ff2373b05e28 Mon Sep 17 00:00:00 2001 From: Wei Yan Date: Tue, 17 Apr 2018 15:01:07 -0700 Subject: [PATCH] HDFS-13466. RBF: Add more router-related information to the UI. --- .../main/webapps/router/federationhealth.html | 17 +++++++++++++++-- .../src/main/webapps/router/federationhealth.js | 5 ++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html index a7da094b49..f1cf482a3f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html @@ -90,6 +90,21 @@ {#federation} +

+ Security is {#routerstat}{#SecurityEnabled}on{:else}off{/SecurityEnabled}{/routerstat}.

+

{#router}{#Safemode}{.}{:else}Safemode is off.{/Safemode}{/router}

+ +

+ {NumFiles|fmt_number} files and directories, {NumBlocks|fmt_number} blocks. +

+ +{#mem.HeapMemoryUsage} +

Heap Memory used {used|fmt_bytes} of {committed|fmt_bytes} Heap Memory. Max Heap Memory is {@eq key=max value="-1" type="number"}<unbounded>{:else}{max|fmt_bytes}{/eq}.

+{/mem.HeapMemoryUsage} + +{#mem.NonHeapMemoryUsage} +

Non Heap Memory used {used|fmt_bytes} of {committed|fmt_bytes} Commited Non Heap Memory. Max Non Heap Memory is {@eq key=max value="-1" type="number"}<unbounded>{:else}{max|fmt_bytes}{/eq}.

+{/mem.NonHeapMemoryUsage} @@ -103,8 +118,6 @@ - -
Total capacity{TotalCapacity|fmt_bytes}
Used capacity{UsedCapacity|fmt_bytes}
Live Nodes{NumLiveNodes} (Decommissioned: {NumDecomLiveNodes})
Dead Nodes{NumDeadNodes} (Decommissioned: {NumDecomDeadNodes})
Decommissioning Nodes{NumDecommissioningNodes}
Files{NumFiles}
Blocks{NumBlocks}
Number of Under-Replicated Blocks{NumOfBlocksUnderReplicated}
Number of Blocks Pending Deletion{NumOfBlocksPendingDeletion}
diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js index ef0a2a4e43..a0b0128dcb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js @@ -33,7 +33,10 @@ function load_overview() { var BEANS = [ - {"name": "federation", "url": "/jmx?qry=Hadoop:service=Router,name=FederationState"} + {"name": "federation", "url": "/jmx?qry=Hadoop:service=Router,name=FederationState"}, + {"name": "routerstat", "url": "/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus"}, + {"name": "router", "url": "/jmx?qrt=Hadoop:service=NameNode,name=NameNodeInfo"}, + {"name": "mem", "url": "/jmx?qry=java.lang:type=Memory"} ]; var HELPERS = {