Browse Source

AMBARI-4913 'Check OOZIE' failed after adding Oozie service. (atkach)

atkach 11 years ago
parent
commit
9a0e1efa84
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ambari-web/app/controllers/wizard/step8_controller.js

+ 4 - 1
ambari-web/app/controllers/wizard/step8_controller.js

@@ -1044,14 +1044,17 @@ App.WizardStep8Controller = Em.Controller.extend({
 
   createConfigurations: function () {
     var selectedServices = this.get('selectedServices');
+    var coreSiteObject = this.createCoreSiteObj();
     if (this.get('content.controllerName') == 'installerController') {
-      this.get('serviceConfigTags').pushObject(this.createCoreSiteObj());
+      this.get('serviceConfigTags').pushObject(coreSiteObject);
       this.get('serviceConfigTags').pushObject(this.createHdfsSiteObj());
       this.get('serviceConfigTags').pushObject(this.createLog4jObj('HDFS'));
     }
     var globalSiteObj = this.createGlobalSiteObj();
     if (this.get('content.controllerName') == 'addServiceController') {
       globalSiteObj.tag = 'version' + (new Date).getTime();
+      coreSiteObject.tag = 'version' + (new Date).getTime();
+      this.get('serviceConfigTags').pushObject(coreSiteObject);
     }
     this.get('serviceConfigTags').pushObject(globalSiteObj);
     if (selectedServices.someProperty('serviceName', 'MAPREDUCE')) {