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/06 23:04:52 UTC

git commit: AMBARI-2815. Add ability to add ZooKeeper Server from Host Details page. (Andrii Babiichuk via yusaku)

Updated Branches:
  refs/heads/trunk 746d98f72 -> 378d0dddf


AMBARI-2815. Add ability to add ZooKeeper Server from Host Details page. (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/378d0ddd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/378d0ddd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/378d0ddd

Branch: refs/heads/trunk
Commit: 378d0dddfd3b64910391fb66fb8d759245768916
Parents: 746d98f
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Tue Aug 6 14:04:45 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Tue Aug 6 14:04:45 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/378d0ddd/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 9e26f6c..f0122a6 100644
--- a/ambari-web/app/views/main/host/summary.js
+++ b/ambari-web/app/views/main/host/summary.js
@@ -136,6 +136,7 @@ App.MainHostSummaryView = Em.View.extend({
     var dataNodeExists = false;
     var taskTrackerExists = false;
     var regionServerExists = false;
+    var zookeeperServerExists = false;
 
     this.get('content.hostComponents').forEach(function (component) {
       switch (component.get('componentName')) {
@@ -148,6 +149,9 @@ App.MainHostSummaryView = Em.View.extend({
         case 'HBASE_REGIONSERVER':
           regionServerExists = true;
           break;
+        case 'ZOOKEEPER_SERVER':
+          zookeeperServerExists = true;
+          break;
       }
     }, this);
 
@@ -160,6 +164,9 @@ App.MainHostSummaryView = Em.View.extend({
     if (!regionServerExists && services.findProperty('serviceName', 'HBASE')) {
       components.pushObject(this.addableComponentObject.create({ 'componentName': 'HBASE_REGIONSERVER' }));
     }
+    if (!zookeeperServerExists && services.findProperty('serviceName', 'ZOOKEEPER')) {
+      components.pushObject(this.addableComponentObject.create({ 'componentName': 'ZOOKEEPER_SERVER' }));
+    }
     return components;
   }.property('content', 'content.hostComponents.length'),