Przeglądaj źródła

AMBARI-2274. MySQL server is installed on the Hive Metastore host even if the user selects the "existing DB" option. (Oleg Nechiporenko via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1489535 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 lat temu
rodzic
commit
67279d73ed

+ 3 - 0
ambari-web/app/controllers/wizard/step8_controller.js

@@ -1195,7 +1195,10 @@ App.WizardStep8Controller = Em.Controller.extend({
     // 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');
+        }
     }
   },