YARN-8119. [UI2] Timeline Server address' url scheme should be removed while accessing via KNOX. Contributed by Sunil G.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f32d6275 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f32d6275 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f32d6275 Branch: refs/heads/HDFS-7240 Commit: f32d6275ba9e377fb722e2440986033d7ce8b602 Parents: f8b8bd5 Author: Rohith Sharma K S <rohithsharm...@apache.org> Authored: Thu Apr 5 23:32:35 2018 +0530 Committer: Rohith Sharma K S <rohithsharm...@apache.org> Committed: Thu Apr 5 23:32:35 2018 +0530 ---------------------------------------------------------------------- .../hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/f32d6275/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/initializers/loader.js ---------------------------------------------------------------------- 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 1f9c7c1..83df971 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]; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org