AMBARI-11105 yarn.resourcemanager.zk-address is not updated when adding/removing ZKs. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/833caa34 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/833caa34 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/833caa34 Branch: refs/heads/trunk Commit: 833caa343703e8d0736924c7844c3802a00e00f6 Parents: ed138a2 Author: aBabiichuk <ababiic...@cybervisiontech.com> Authored: Wed May 13 16:36:20 2015 +0300 Committer: aBabiichuk <ababiic...@cybervisiontech.com> Committed: Wed May 13 16:42:00 2015 +0300 ---------------------------------------------------------------------- ambari-web/app/controllers/main/host/details.js | 1 + ambari-web/test/controllers/main/host/details_test.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/833caa34/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 05335aa..1d1f965 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -1184,6 +1184,7 @@ App.MainHostDetailsController = Em.Controller.extend({ } if (configs['yarn-site']) { configs['yarn-site']['hadoop.registry.zk.quorum'] = zksWithPort; + configs['yarn-site']['yarn.resourcemanager.zk-address'] = zksWithPort; } } return true; http://git-wip-us.apache.org/repos/asf/ambari/blob/833caa34/ambari-web/test/controllers/main/host/details_test.js ---------------------------------------------------------------------- diff --git a/ambari-web/test/controllers/main/host/details_test.js b/ambari-web/test/controllers/main/host/details_test.js index 1a7c2ca..f0df0f2 100644 --- a/ambari-web/test/controllers/main/host/details_test.js +++ b/ambari-web/test/controllers/main/host/details_test.js @@ -891,7 +891,8 @@ describe('App.MainHostDetailsController', function () { App.set('currentStackVersion', 'HDP-2.2.0'); expect(controller.setZKConfigs(configs, 'host1:2181', [])).to.be.true; expect(configs).to.eql({"yarn-site": { - 'hadoop.registry.zk.quorum': "host1:2181" + 'hadoop.registry.zk.quorum': "host1:2181", + 'yarn.resourcemanager.zk-address': "host1:2181" }}); App.set('currentStackVersion', version); });