|
@@ -62,6 +62,10 @@ function getYarnHttpProtocolScheme(rmhost, application) {
|
|
return getConfigFromYarn(rmhost, application, 'yarn.http.policy');
|
|
return getConfigFromYarn(rmhost, application, 'yarn.http.policy');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function getYarnTimelineEnabled(rmhost, application) {
|
|
|
|
+ return getConfigFromYarn(rmhost, application, 'yarn.timeline-service.enabled');
|
|
|
|
+}
|
|
|
|
+
|
|
function getTimeLineURL(rmhost, isHttpsSchemeEnabled) {
|
|
function getTimeLineURL(rmhost, isHttpsSchemeEnabled) {
|
|
var url = window.location.protocol + '//' +
|
|
var url = window.location.protocol + '//' +
|
|
(ENV.hosts.localBaseAddress? ENV.hosts.localBaseAddress + '/' : '') + rmhost;
|
|
(ENV.hosts.localBaseAddress? ENV.hosts.localBaseAddress + '/' : '') + rmhost;
|
|
@@ -192,6 +196,10 @@ function updateConfigs(application) {
|
|
Ember.Logger.log("NodeMananger port: " + nodeManagerPort);
|
|
Ember.Logger.log("NodeMananger port: " + nodeManagerPort);
|
|
ENV.nodeManagerPort = nodeManagerPort;
|
|
ENV.nodeManagerPort = nodeManagerPort;
|
|
|
|
|
|
|
|
+ var timelineServiceEnabled = getYarnTimelineEnabled(rmhost, application);
|
|
|
|
+ Ember.Logger.log("Timeline Service enabled: " + timelineServiceEnabled);
|
|
|
|
+ ENV.timelineServiceEnabled = (timelineServiceEnabled.toLowerCase() === 'true');
|
|
|
|
+
|
|
if (!ENV.hosts.jhsAddress) {
|
|
if (!ENV.hosts.jhsAddress) {
|
|
var jhsAddress = getJHSURL(rmhost, application, isHttpsSchemeEnabled);
|
|
var jhsAddress = getJHSURL(rmhost, application, isHttpsSchemeEnabled);
|
|
jhsAddress = transformURL(jhsAddress, hostname);
|
|
jhsAddress = transformURL(jhsAddress, hostname);
|