From 8d32bd884d53948728b77de14531b3be196f4bc7 Mon Sep 17 00:00:00 2001 From: Yongjun Zhang Date: Fri, 29 Jul 2016 23:20:14 -0700 Subject: [PATCH] HDFS-10703. HA NameNode Web UI should show last checkpoint time. (John Zhuge via Yongjun Zhang) --- .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js | 1 + 2 files changed, 4 insertions(+) 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 4fa2e4c02d..b0db3a1dc1 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 @@ -182,6 +182,9 @@ Block Deletion Start Time{BlockDeletionStartTime|date_tostring} {/fs} +{#fsn} + Last Checkpoint Time{@if cond="{LastCheckpointTime} === 0"}Never{:else}{LastCheckpointTime|date_tostring}{/if} +{/fsn} diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js index e2908c02b5..f230b0f5cb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js @@ -36,6 +36,7 @@ {"name": "nn", "url": "/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo"}, {"name": "nnstat", "url": "/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus"}, {"name": "fs", "url": "/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState"}, + {"name": "fsn", "url": "/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem"}, {"name": "blockstats", "url": "/jmx?qry=Hadoop:service=NameNode,name=BlockStats"}, {"name": "mem", "url": "/jmx?qry=java.lang:type=Memory"} ];