diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/index.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/index.html index 7f4e57b5a5..bee42bf5f4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/index.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/index.html @@ -26,11 +26,11 @@ HDFS Key Space Manager - - - + + + - + @@ -49,7 +49,7 @@ HDFS KSM + metrics="{ 'Ksm metrics' : '#!/metrics/ksm', 'Rpc metrics' : '#!/metrics/rpc'}"> @@ -57,14 +57,14 @@ - - - - - - - - - + + + + + + + + + diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/ksm.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/ksm.js index 98240a46bc..7fb52b1292 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/ksm.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/ksm/ksm.js @@ -61,7 +61,7 @@ }; - $http.get("/jmx?qry=Hadoop:service=KeySpaceManager,name=KSMMetrics") + $http.get("jmx?qry=Hadoop:service=KeySpaceManager,name=KSMMetrics") .then(function (result) { var groupedMetrics = {others: [], nums: {}}; diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/index.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/index.html index 6d044d9742..3407f51be7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/index.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/index.html @@ -26,11 +26,11 @@ HDFS Storage Container Manager - - - + + + - + @@ -51,7 +51,7 @@ + metrics="{ 'Rpc metrics' : '#!/metrics/rpc'}"> @@ -63,14 +63,14 @@ - - - - - - - - - + + + + + + + + + diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/scm.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/scm.js index c88fe9775c..bcfa8b7b7b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/scm.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/scm/scm.js @@ -26,11 +26,11 @@ }, controller: function ($http) { var ctrl = this; - $http.get("/jmx?qry=Hadoop:service=BlockManager,name=*") + $http.get("jmx?qry=Hadoop:service=BlockManager,name=*") .then(function (result) { ctrl.blockmanagermetrics = result.data.beans[0]; }); - $http.get("/jmx?qry=Hadoop:service=SCMNodeManager,name=SCMNodeManagerInfo") + $http.get("jmx?qry=Hadoop:service=SCMNodeManager,name=SCMNodeManagerInfo") .then(function (result) { ctrl.nodemanagermetrics = result.data.beans[0]; }); diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js index 57e1ab80c6..37cafef4b4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/ozone.js @@ -40,7 +40,7 @@ transclude: true, controller: function ($http) { var ctrl = this; - $http.get("/jmx?qry=Hadoop:service=*,name=*,component=ServerRuntime") + $http.get("jmx?qry=Hadoop:service=*,name=*,component=ServerRuntime") .then(function (result) { ctrl.jmx = result.data.beans[0] }) @@ -50,7 +50,7 @@ templateUrl: 'static/templates/jvm.html', controller: function ($http) { var ctrl = this; - $http.get("/jmx?qry=java.lang:type=Runtime") + $http.get("jmx?qry=java.lang:type=Runtime") .then(function (result) { ctrl.jmx = result.data.beans[0]; @@ -73,7 +73,7 @@ '', controller: function ($http) { var ctrl = this; - $http.get("/jmx?qry=Hadoop:service=*,name=RpcActivityForPort*") + $http.get("jmx?qry=Hadoop:service=*,name=RpcActivityForPort*") .then(function (result) { ctrl.metrics = result.data.beans; }) @@ -246,11 +246,11 @@ bindings: { metrics: '<' }, - templateUrl: '/static/templates/menu.html', + templateUrl: 'static/templates/menu.html', controller: function ($http) { var ctrl = this; ctrl.docs = false; - $http.head("/docs/index.html") + $http.head("docs/index.html") .then(function (result) { ctrl.docs = true; },function(){ @@ -260,12 +260,12 @@ }); angular.module('ozone').component('config', { - templateUrl: '/static/templates/config.html', + templateUrl: 'static/templates/config.html', controller: function ($scope, $http) { var ctrl = this; ctrl.selectedTags = []; - $http.get("/conf?cmd=getOzoneTags&group=ozone") + $http.get("conf?cmd=getOzoneTags&group=ozone") .then(function (response) { ctrl.tags = response.data; @@ -284,7 +284,7 @@ ctrl.loadAll = function () { console.log("Displaying all configs"); - $http.get("/conf?cmd=getPropertyByTag&tags=" + ctrl.tags + "&group=ozone").then(function (response) { + $http.get("conf?cmd=getPropertyByTag&tags=" + ctrl.tags + "&group=ozone").then(function (response) { ctrl.configs = response.data; console.log(ctrl.configs) for (var idx in ctrl.configs) { diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/menu.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/menu.html index 4769e69846..95f1b4842f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/menu.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/templates/menu.html @@ -33,7 +33,7 @@ aria-hidden="true"> -
  • Configuration
  • +
  • Configuration
  • Documentation