From b11c228660f41ac7336ee03f0b95efda23ff7096 Mon Sep 17 00:00:00 2001 From: Rohith Sharma K S Date: Thu, 5 Apr 2018 23:32:35 +0530 Subject: [PATCH] YARN-8119. [UI2] Timeline Server address' url scheme should be removed while accessing via KNOX. Contributed by Sunil G. (cherry picked from commit f32d6275ba9e377fb722e2440986033d7ce8b602) --- .../hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js | 2 ++ 1 file changed, 2 insertions(+) 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 af55036b480..d047ed108cc 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];