HDFS-6105. NN web UI for DN list loads the same jmx page multiple times. Contributed by Haohui Mai.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1579468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Haohui Mai 2014-03-19 23:56:43 +00:00
parent cfb468332e
commit 44deaa8241
2 changed files with 3 additions and 8 deletions

View File

@ -655,6 +655,9 @@ Release 2.4.0 - UNRELEASED
HDFS-6100. DataNodeWebHdfsMethods does not failover in HA mode. (Haohui Mai
via jing9)
HDFS-6105. NN web UI for DN list loads the same jmx page multiple times.
(wheat9)
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

View File

@ -80,12 +80,10 @@
var base = dust.makeBase(HELPERS);
dust.render('dfshealth', base.push(data), function(err, out) {
$('#tab-overview').html(out);
$('a[href="#tab-datanode"]').click(load_datanode_info);
$('#ui-tabs a[href="#tab-overview"]').tab('show');
});
}
}
$('#ui-tabs a[href="#tab-overview"]').click(load_overview);
function show_err_msg(msg) {
$('#alert-panel-body').html(msg);
@ -140,8 +138,6 @@
}).error(ajax_error_handler);
}
$('#ui-tabs a[href="#tab-startup-progress"]').click(load_startup_progress);
function load_datanode_info() {
function workaround(r) {
function node_map_to_array(nodes) {
@ -171,8 +167,6 @@
})).error(ajax_error_handler);
}
$('a[href="#tab-datanode"]').click(load_datanode_info);
function load_snapshot_info() {
$.get(
'/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState',
@ -185,8 +179,6 @@
})).error(ajax_error_handler);
}
$('#ui-tabs a[href="#tab-snapshot"]').click(load_snapshot_info);
function load_page() {
var hash = window.location.hash;
switch(hash) {