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 2014/02/20 13:40:05 UTC

git commit: AMBARI-4745. Value "storm.zookeeper.servers" not changing after adding new ZK server. (Denys Buzhor via alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 4471763eb -> e2f9af986


AMBARI-4745. Value "storm.zookeeper.servers" not changing after adding new ZK server. (Denys Buzhor via alexantonenko)


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

Branch: refs/heads/trunk
Commit: e2f9af9863f4732aab8a8a0d9e1ce757725b0f75
Parents: 4471763
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Feb 20 14:40:14 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Thu Feb 20 14:40:14 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/e2f9af98/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 ca3e15a..5f95ac7 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -539,6 +539,9 @@ App.MainHostDetailsController = Em.Controller.extend({
     if (App.Service.find().someProperty('serviceName', 'HIVE')) {
       urlParams.push('(type=webhcat-site&tag=' + data.Clusters.desired_configs['webhcat-site'].tag + ')');
     }
+    if (App.Service.find().someProperty('serviceName', 'STORM')) {
+      urlParams.push('(type=storm-site&tag=' + data.Clusters.desired_configs['storm-site'].tag + ')');
+    }
     App.ajax.send({
       name: 'reassign.load_configs',
       sender: this,
@@ -574,6 +577,9 @@ App.MainHostDetailsController = Em.Controller.extend({
     if (configs['webhcat-site']) {
       configs['webhcat-site']['templeton.zookeeper.hosts'] = zks_with_port;
     }
+    if (configs['storm-site']) {
+      configs['storm-site']['storm.zookeeper.servers'] = JSON.stringify(zks).replace(/"/g, "'");
+    }
     for (var site in configs) {
       if (!configs.hasOwnProperty(site)) continue;
       App.ajax.send({