YARN-8119. [UI2] Timeline Server address' url scheme should be removed while accessing via KNOX. Contributed by Sunil G.
(cherry picked from commit f32d6275ba
)
This commit is contained in:
parent
2543a9dd77
commit
b11c228660
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue