diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js index 1f9c7c1b1b..83df971d9d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js @@ -61,6 +61,7 @@ function updateConfigs(application) { url: getTimeLineURL(rmhost), success: function(data) { timelinehost = data.property.value; + timelinehost = timelinehost.replace(/(^\w+:|^)\/\//, ''); ENV.hosts.timelineWebAddress = timelinehost; var address = timelinehost.split(":")[0]; @@ -94,6 +95,7 @@ function updateConfigs(application) { url: getTimeLineV1URL(rmhost), success: function(data) { timelinehost = data.property.value; + timelinehost = timelinehost.replace(/(^\w+:|^)\/\//, ''); ENV.hosts.timelineV1WebAddress = timelinehost; var address = timelinehost.split(":")[0];