|
@@ -388,20 +388,20 @@ App.ServiceConfigProperty = Ember.Object.extend({
|
|
break;
|
|
break;
|
|
case 'yarn.timeline-service.webapp.address':
|
|
case 'yarn.timeline-service.webapp.address':
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
- if (atsHost) {
|
|
|
|
- this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
|
|
|
|
|
|
+ if (atsHost && atsHost.hostName) {
|
|
|
|
+ this.setDefaultValue(hostWithPort,atsHost.hostName);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'yarn.timeline-service.webapp.https.address':
|
|
case 'yarn.timeline-service.webapp.https.address':
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
- if (atsHost) {
|
|
|
|
- this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
|
|
|
|
|
|
+ if (atsHost && atsHost.hostName) {
|
|
|
|
+ this.setDefaultValue(hostWithPort,atsHost.hostName);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'yarn.timeline-service.address':
|
|
case 'yarn.timeline-service.address':
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
var atsHost = masterComponentHostsInDB.findProperty('component', 'APP_TIMELINE_SERVER');
|
|
- if (atsHost) {
|
|
|
|
- this.setDefaultValue("(0.0.0.0)(?=:)", atsHost.hostName);
|
|
|
|
|
|
+ if (atsHost && atsHost.hostName) {
|
|
|
|
+ this.setDefaultValue(hostWithPort,atsHost.hostName);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'nm_hosts':
|
|
case 'nm_hosts':
|