You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/12/22 18:21:31 UTC

ambari git commit: AMBARI-14468. adding zk servers post install did not update the zk servers in other services

Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 e916cbddc -> de26ecec5


AMBARI-14468. adding zk servers post install did not update the zk servers in other services


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

Branch: refs/heads/branch-2.2
Commit: de26ecec5a08dd6d04d2aef462f6b38b0eef5678
Parents: e916cbd
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue Dec 22 17:00:17 2015 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Tue Dec 22 19:21:27 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host/details.js | 27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/de26ecec/ambari-web/app/controllers/main/host/details.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js
index cb4abaf..9b38db9 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -1244,6 +1244,9 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow
       urlParams.push('(type=yarn-site&tag=' + data.Clusters.desired_configs['yarn-site'].tag + ')');
       urlParams.push('(type=zoo.cfg&tag=' + data.Clusters.desired_configs['zoo.cfg'].tag + ')');
     }
+    if (services.someProperty('serviceName', 'ACCUMULO')) {
+      urlParams.push('(type=accumulo-site&tag=' + data.Clusters.desired_configs['accumulo-site'].tag + ')');
+    }
     return urlParams;
   },
 
@@ -1286,6 +1289,30 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow
         }
       );
     }
+    if (App.Service.find().someProperty('serviceName', 'HBASE')) {
+      groups.push(
+        {
+          properties: {
+            'hbase-site': configs['hbase-site']
+          },
+          properties_attributes: {
+            'hbase-site': attributes['hbase-site']
+          }
+        }
+      );
+    }
+    if (App.Service.find().someProperty('serviceName', 'ACCUMULO')) {
+      groups.push(
+        {
+          properties: {
+            'accumulo-site': configs['accumulo-site']
+          },
+          properties_attributes: {
+            'accumulo-site': attributes['accumulo-site']
+          }
+        }
+      );
+    }
     this.saveConfigsBatch(groups, 'ZOOKEEPER_SERVER');
   },
   /**