Author: yusaku
Date: Tue Jun  4 18:08:44 2013
New Revision: 1489537

URL: http://svn.apache.org/r1489537
Log:
AMBARI-2274. MySQL server is installed on the Hive Metastore host even if the 
user selects the "existing DB" option. (Oleg Nechiporenko via yusaku)

Modified:
    
incubator/ambari/branches/branch-1.2.4/ambari-web/app/controllers/wizard/step8_controller.js

Modified: 
incubator/ambari/branches/branch-1.2.4/ambari-web/app/controllers/wizard/step8_controller.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.4/ambari-web/app/controllers/wizard/step8_controller.js?rev=1489537&r1=1489536&r2=1489537&view=diff
==============================================================================
--- 
incubator/ambari/branches/branch-1.2.4/ambari-web/app/controllers/wizard/step8_controller.js
 (original)
+++ 
incubator/ambari/branches/branch-1.2.4/ambari-web/app/controllers/wizard/step8_controller.js
 Tue Jun  4 18:08:44 2013
@@ -1231,7 +1231,10 @@ App.WizardStep8Controller = Em.Controlle
     // add MySQL Server if Hive is selected
     var hiveService = 
this.get('content.services').filterProperty('isSelected', 
true).filterProperty('isInstalled', false).findProperty('serviceName', 'HIVE');
     if (hiveService) {
+      var hiveDb = 
this.get('content.serviceConfigProperties').findProperty('name', 
'hive_database');
+        if(hiveDb.value == "New MySQL Database") {
       this.registerHostsToComponent(masterHosts.filterProperty('component', 
'HIVE_SERVER').mapProperty('hostName'), 'MYSQL_SERVER');
+        }
     }
   },
 


Reply via email to