Browse Source

AMBARI-3483: Yarn client component should be installed on Oozie server host and webhcat server host. (jaimin)

Jaimin Jetly 11 years ago
parent
commit
96d67e3738
1 changed files with 14 additions and 2 deletions
  1. 14 2
      ambari-web/app/controllers/wizard/step8_controller.js

+ 14 - 2
ambari-web/app/controllers/wizard/step8_controller.js

@@ -1151,7 +1151,7 @@ App.WizardStep8Controller = Em.Controller.extend({
           var hostNames = _slave.hosts.mapProperty('hostName');
           var hostNames = _slave.hosts.mapProperty('hostName');
           switch (_client.component_name) {
           switch (_client.component_name) {
             case 'HDFS_CLIENT':
             case 'HDFS_CLIENT':
-              // install HDFS_CLIENT on HBASE_MASTER, HBASE_REGIONSERVER, WEBHCAT_SERVER, and HISTORYSERVER hosts
+              // install HDFS_CLIENT on HBASE_MASTER, HBASE_REGIONSERVER, WEBHCAT_SERVER, HISTORYSERVER and OOZIE_SERVER hosts
               masterHosts.filterProperty('component', 'HBASE_MASTER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
               masterHosts.filterProperty('component', 'HBASE_MASTER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                 hostNames.pushObject(_masterHost.hostName);
                 hostNames.pushObject(_masterHost.hostName);
               }, this);
               }, this);
@@ -1164,6 +1164,9 @@ App.WizardStep8Controller = Em.Controller.extend({
               masterHosts.filterProperty('component', 'HISTORYSERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
               masterHosts.filterProperty('component', 'HISTORYSERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                 hostNames.pushObject(_masterHost.hostName);
                 hostNames.pushObject(_masterHost.hostName);
               }, this);
               }, this);
+              masterHosts.filterProperty('component', 'OOZIE_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                hostNames.pushObject(_masterHost.hostName);
+              }, this);
               break;
               break;
             case 'MAPREDUCE_CLIENT':
             case 'MAPREDUCE_CLIENT':
               // install MAPREDUCE_CLIENT on HIVE_SERVER, OOZIE_SERVER, NAGIOS_SERVER, and WEBHCAT_SERVER hosts
               // install MAPREDUCE_CLIENT on HIVE_SERVER, OOZIE_SERVER, NAGIOS_SERVER, and WEBHCAT_SERVER hosts
@@ -1208,10 +1211,19 @@ App.WizardStep8Controller = Em.Controller.extend({
               }, this);
               }, this);
               break;
               break;
             case 'YARN_CLIENT':
             case 'YARN_CLIENT':
-              // install YARN_CLIENT on NAGIOS_SERVER host
+              // install YARN_CLIENT on NAGIOS_SERVER,HIVE_SERVER,OOZIE_SERVER,WEBHCAT_SERVER host
               masterHosts.filterProperty('component', 'NAGIOS_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
               masterHosts.filterProperty('component', 'NAGIOS_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                 hostNames.pushObject(_masterHost.hostName);
                 hostNames.pushObject(_masterHost.hostName);
               }, this);
               }, this);
+              masterHosts.filterProperty('component', 'HIVE_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                hostNames.pushObject(_masterHost.hostName);
+              }, this);
+              masterHosts.filterProperty('component', 'OOZIE_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                hostNames.pushObject(_masterHost.hostName);
+              }, this);
+              masterHosts.filterProperty('component', 'WEBHCAT_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                hostNames.pushObject(_masterHost.hostName);
+              }, this);
               break;
               break;
           }
           }
           hostNames = hostNames.uniq();
           hostNames = hostNames.uniq();