You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2014/10/07 12:51:12 UTC
[1/2] git commit: AMBARI-7671 slider.zookeeper.quorum should be
managed automatically while adding zk servers to a host. (ababiichuk)
Repository: ambari
Updated Branches:
refs/heads/branch-1.7.0 c5fe5cf90 -> 5706f924e
AMBARI-7671 slider.zookeeper.quorum should be managed automatically while adding zk servers to a host. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9648173c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9648173c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9648173c
Branch: refs/heads/branch-1.7.0
Commit: 9648173ce771986083660d77c2dd2e381bd580c2
Parents: c5fe5cf
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Tue Oct 7 13:48:32 2014 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Tue Oct 7 13:48:32 2014 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/main/host/details.js | 6 ++++++
ambari-web/app/messages.js | 6 +++---
.../test/controllers/main/host/details_test.js | 16 ++++++++++++++++
3 files changed, 25 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9648173c/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 98819e4..f56255a 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -655,6 +655,9 @@ App.MainHostDetailsController = Em.Controller.extend({
if (services.someProperty('serviceName', 'STORM')) {
urlParams.push('(type=storm-site&tag=' + data.Clusters.desired_configs['storm-site'].tag + ')');
}
+ if (services.someProperty('serviceName', 'SLIDER')) {
+ urlParams.push('(type=slider-client&tag=' + data.Clusters.desired_configs['slider-client'].tag + ')');
+ }
if (App.get('isRMHaEnabled')) {
urlParams.push('(type=yarn-site&tag=' + data.Clusters.desired_configs['yarn-site'].tag + ')');
}
@@ -714,6 +717,9 @@ App.MainHostDetailsController = Em.Controller.extend({
if (configs['storm-site']) {
configs['storm-site']['storm.zookeeper.servers'] = JSON.stringify(zks).replace(/"/g, "'");
}
+ if (configs['slider-client']) {
+ configs['slider-client']['slider.zookeeper.quorum'] = zksWithPort;
+ }
if (App.get('isRMHaEnabled')) {
configs['yarn-site']['yarn.resourcemanager.zk-address'] = zks.join(',');
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/9648173c/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 34cee7d..8b4ff45 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1702,14 +1702,14 @@ Em.I18n.translations = {
'host.host.componentFilter.client':'Client Components',
'hosts.host.deleteComponent.popup.msg1':'Are you sure you want to delete {0}?',
'hosts.host.deleteComponent.popup.msg2':'<b>Important:</b> After this <i>{0}</i> is deleted, go to <i>Services -> Nagios</i> to restart the Nagios service. This is required for the alerts and notifications to work properly.',
- 'hosts.host.deleteComponent.popup.deleteZooKeeperServer':'Deleting <i>ZooKeeper Server</i> may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li></ul>',
+ 'hosts.host.deleteComponent.popup.deleteZooKeeperServer':'Deleting <i>ZooKeeper Server</i> may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li><li>hive.zookeeper.quorum</li><li>slider.zookeeper.quorum</li></ul>',
'hosts.host.deleteComponent.popup.warning':'<b>WARNING!</b> Delete the last <i>{0}</i> component in the cluster?</br>Deleting the last component in the cluster could result in permanent loss of service data.',
'hosts.host.deleteComponent.popup.confirm':'Confirm Delete',
'hosts.host.installComponent.popup.confirm':'Confirm Install',
'hosts.host.installComponent.msg':'Are you sure you want to install {0}?',
'hosts.host.addComponent.msg':'Are you sure you want to add {0}?',
- 'hosts.host.addComponent.addZooKeeper':'Adding ZooKeeper Server may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li><li>hive.zookeeper.quorum</li></ul>',
- 'hosts.host.addComponent.deleteHostWithZooKeeper':'Deleting host with ZooKeeper Server may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li><li>hive.zookeeper.quorum</li></ul>',
+ 'hosts.host.addComponent.addZooKeeper':'Adding ZooKeeper Server may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li><li>hive.zookeeper.quorum</li><li>slider.zookeeper.quorum</li></ul>',
+ 'hosts.host.addComponent.deleteHostWithZooKeeper':'Deleting host with ZooKeeper Server may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li><li>yarn.resourcemanager.zk-address</li><li>hive.zookeeper.quorum</li><li>slider.zookeeper.quorum</li></ul>',
'host.host.addComponent.popup.dependedComponents.body': '{0} requires {1} to be installed along with it on the same host. Please add them first and then try adding {0}',
'host.host.addComponent.popup.dependedComponents.header': 'Component dependencies',
'hosts.host.zooKeeper.configs.save.note': 'This configuration is created by ambari while installing/deleting zookeeper component on a host',
http://git-wip-us.apache.org/repos/asf/ambari/blob/9648173c/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 7c63460..899a66a 100644
--- a/ambari-web/test/controllers/main/host/details_test.js
+++ b/ambari-web/test/controllers/main/host/details_test.js
@@ -463,6 +463,15 @@ describe('App.MainHostDetailsController', function () {
expect(controller.constructConfigUrlParams(data)).to.eql(['(type=storm-site&tag=1)']);
App.Service.find().clear();
});
+ it('SLIDER is installed', function () {
+ App.store.load(App.Service, {
+ id: 'SLIDER',
+ service_name: 'SLIDER'
+ });
+ var data = {Clusters: {desired_configs: {'slider-client': {tag: 1}}}};
+ expect(controller.constructConfigUrlParams(data)).to.eql(['(type=slider-client&tag=1)']);
+ App.Service.find().clear();
+ });
});
describe('#loadConfigsSuccessCallback()', function () {
@@ -582,6 +591,13 @@ describe('App.MainHostDetailsController', function () {
"storm.zookeeper.servers": "['host1','host2']"
}});
});
+ it('slider-client is present', function () {
+ var configs = {'slider-client': {}};
+ expect(controller.setZKConfigs(configs, 'host1:2181', [])).to.be.true;
+ expect(configs).to.eql({"slider-client": {
+ "slider.zookeeper.quorum": "host1:2181"
+ }});
+ });
});
describe('#concatZkNames()', function () {
[2/2] git commit: AMBARI-7670 2.2 Stack: slider quorum defaults to
localhost. (ababiichuk)
Posted by ab...@apache.org.
AMBARI-7670 2.2 Stack: slider quorum defaults to localhost. (ababiichuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5706f924
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5706f924
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5706f924
Branch: refs/heads/branch-1.7.0
Commit: 5706f924e26bb2e0561286f016fa8b3c8927d0a6
Parents: 9648173
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Tue Oct 7 13:48:45 2014 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Tue Oct 7 13:48:45 2014 +0300
----------------------------------------------------------------------
ambari-web/app/models/service_config.js | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5706f924/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js b/ambari-web/app/models/service_config.js
index 6a5c1ae..f5dcf21 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -484,6 +484,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
break;
case 'hive.zookeeper.quorum':
case 'templeton.zookeeper.hosts':
+ case 'slider.zookeeper.quorum':
var zkHosts = masterComponentHostsInDB.filterProperty('component', 'ZOOKEEPER_SERVER').mapProperty('hostName');
var zkHostPort = zkHosts;
var regex = "\\w*:(\\d+)"; //regex to fetch the port