HDFS-10703. HA NameNode Web UI should show last checkpoint time. (John Zhuge 
via Yongjun Zhang)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8d32bd88
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8d32bd88
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8d32bd88

Branch: refs/heads/HADOOP-12756
Commit: 8d32bd884d53948728b77de14531b3be196f4bc7
Parents: 3f0bffe
Author: Yongjun Zhang <yzh...@cloudera.com>
Authored: Fri Jul 29 23:20:14 2016 -0700
Committer: Yongjun Zhang <yzh...@cloudera.com>
Committed: Fri Jul 29 23:20:14 2016 -0700

----------------------------------------------------------------------
 .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html              | 3 +++
 .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js                | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d32bd88/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html
----------------------------------------------------------------------
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 4fa2e4c..b0db3a1 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 @@
   <tr><th>Block Deletion Start 
Time</th><td>{BlockDeletionStartTime|date_tostring}</td></tr>
 {/fs}
 
+{#fsn}
+  <tr><th>Last Checkpoint Time</th><td>{@if cond="{LastCheckpointTime} === 
0"}Never{:else}{LastCheckpointTime|date_tostring}{/if}</td></tr>
+{/fsn}
 </table>
 
 <div class="page-header"><h1>NameNode Journal Status</h1></div>

http://git-wip-us.apache.org/repos/asf/hadoop/blob/8d32bd88/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js
----------------------------------------------------------------------
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 e2908c0..f230b0f 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"}
     ];


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to