You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/08/21 20:09:14 UTC

git commit: AMBARI-2963. Need 'Add NodeManager' action on host. (Andrii Babiichuk via yusaku)

Updated Branches:
  refs/heads/trunk 7eddd1c5b -> 81cd63d9e


AMBARI-2963. Need 'Add NodeManager' action on host. (Andrii Babiichuk via yusaku)


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

Branch: refs/heads/trunk
Commit: 81cd63d9e66a428289a8eaf3f89061421e752d39
Parents: 7eddd1c
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Wed Aug 21 11:08:48 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Wed Aug 21 11:08:48 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/host/summary.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/81cd63d9/ambari-web/app/views/main/host/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/summary.js b/ambari-web/app/views/main/host/summary.js
index f0122a6..8c53f6b 100644
--- a/ambari-web/app/views/main/host/summary.js
+++ b/ambari-web/app/views/main/host/summary.js
@@ -137,6 +137,7 @@ App.MainHostSummaryView = Em.View.extend({
     var taskTrackerExists = false;
     var regionServerExists = false;
     var zookeeperServerExists = false;
+    var nodeManagerExists = false;
 
     this.get('content.hostComponents').forEach(function (component) {
       switch (component.get('componentName')) {
@@ -152,6 +153,9 @@ App.MainHostSummaryView = Em.View.extend({
         case 'ZOOKEEPER_SERVER':
           zookeeperServerExists = true;
           break;
+        case 'NODEMANAGER':
+          nodeManagerExists = true;
+          break;
       }
     }, this);
 
@@ -167,6 +171,9 @@ App.MainHostSummaryView = Em.View.extend({
     if (!zookeeperServerExists && services.findProperty('serviceName', 'ZOOKEEPER')) {
       components.pushObject(this.addableComponentObject.create({ 'componentName': 'ZOOKEEPER_SERVER' }));
     }
+    if (!nodeManagerExists && services.findProperty('serviceName', 'YARN')) {
+      components.pushObject(this.addableComponentObject.create({ 'componentName': 'NODEMANAGER' }));
+    }
     return components;
   }.property('content', 'content.hostComponents.length'),