From 6e5cd5273f1107635867ee863cb0e17ef7cc4afa Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Sat, 12 Oct 2019 13:26:47 +0530 Subject: [PATCH] HDFS-14899. Use Relative URLS in Hadoop HDFS RBF. Contributed by David Mollitor. --- .../main/webapps/router/federationhealth.html | 22 +++++++++---------- .../main/webapps/router/federationhealth.js | 14 ++++++------ 2 files changed, 18 insertions(+), 18 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 496326b255..cbe983f034 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 @@ -19,9 +19,9 @@ - - - + + + Router Information @@ -432,14 +432,14 @@ - - - - - - - - + + + + + + + + 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 58a23826cf..2d770ad691 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,9 +33,9 @@ function load_overview() { var BEANS = [ - {"name": "federation", "url": "/jmx?qry=Hadoop:service=Router,name=FederationState"}, - {"name": "router", "url": "/jmx?qry=Hadoop:service=Router,name=Router"}, - {"name": "mem", "url": "/jmx?qry=java.lang:type=Memory"} + {"name": "federation", "url": "jmx?qry=Hadoop:service=Router,name=FederationState"}, + {"name": "router", "url": "jmx?qry=Hadoop:service=Router,name=Router"}, + {"name": "mem", "url": "jmx?qry=java.lang:type=Memory"} ]; var HELPERS = { @@ -147,7 +147,7 @@ } $.get( - '/jmx?qry=Hadoop:service=Router,name=FederationState', + 'jmx?qry=Hadoop:service=Router,name=FederationState', guard_with_startup_progress(function (resp) { var data = workaround(resp.beans[0]); var base = dust.makeBase(HELPERS); @@ -211,7 +211,7 @@ } $.get( - '/jmx?qry=Hadoop:service=Router,name=FederationState', + 'jmx?qry=Hadoop:service=Router,name=FederationState', guard_with_startup_progress(function (resp) { var data = workaround(resp.beans[0]); var base = dust.makeBase(HELPERS); @@ -289,7 +289,7 @@ } $.get( - '/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo', + 'jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo', guard_with_startup_progress(function (resp) { var data = workaround(resp.beans[0]); var base = dust.makeBase(HELPERS); @@ -342,7 +342,7 @@ } $.get( - '/jmx?qry=Hadoop:service=Router,name=FederationState', + 'jmx?qry=Hadoop:service=Router,name=FederationState', guard_with_startup_progress(function (resp) { var data = workaround(resp.beans[0]); var base = dust.makeBase(HELPERS);