Author: yusaku
Date: Tue Jun 4 18:02:09 2013
New Revision: 1489535
URL: http://svn.apache.org/r1489535
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/trunk/ambari-web/app/controllers/wizard/step8_controller.js
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step8_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step8_controller.js?rev=1489535&r1=1489534&r2=1489535&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step8_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step8_controller.js
Tue Jun 4 18:02:09 2013
@@ -1195,7 +1195,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');
+ }
}
},