ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [2/3] ambari git commit: AMBARI-17400. Ambari could not detect the spark-client that is dependency of livy (alexantonenko)
Date Thu, 23 Jun 2016 12:45:20 GMT
AMBARI-17400. Ambari could not detect the spark-client that is dependency of livy (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/71cf3c2a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/71cf3c2a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/71cf3c2a

Branch: refs/heads/branch-2.4
Commit: 71cf3c2a232bcf10f660739436075c08d37486d8
Parents: ec57654
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Jun 23 14:10:56 2016 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Thu Jun 23 15:45:12 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step8_controller.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/71cf3c2a/ambari-web/app/controllers/wizard/step8_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index b236373..3971cf5 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -1217,7 +1217,8 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs,
App.wiz
      *  }
      * </code>
      */
-    var clientsToMasterMap = this.getClientsMap('isMaster');
+    var clientsToMasterMap = this.getClientsMap('isMaster'),
+        clientsToSlaveMap = this.getClientsMap('isSlave');
 
     slaveHosts.forEach(function (_slave) {
       if (_slave.componentName !== 'CLIENT') {
@@ -1254,6 +1255,13 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs,
App.wiz
               });
             }
           }
+          if (clientsToSlaveMap[_client.component_name]) {
+            clientsToSlaveMap[_client.component_name].forEach(function (componentName) {
+              slaveHosts.filterProperty('componentName', componentName).forEach(function
(slaveHost) {
+                hostNames = hostNames.concat(slaveHost.hosts.mapProperty('hostName')).uniq();
+              });
+            });
+          }
           if (clientOnAllHosts.length > 0) {
             var compOnAllHosts = false;
             for (var i=0; i < clientOnAllHosts.length; i++) {


Mime
View raw message