This is an automated email from the ASF dual-hosted git repository.
asnaik pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new c94263b AMBARI-25034 Ambari is not updating core-site :
ha.zookeeper.quorumonce a zookeeper server is added or removed (asnaik) (#2910)
c94263b is described below
commit c94263bedd2f3c53547632f3cc2989847aecb841
Author: Akhil S Naik <[email protected]>
AuthorDate: Thu Apr 4 09:33:57 2019 +0530
AMBARI-25034 Ambari is not updating core-site : ha.zookeeper.quorumonce a
zookeeper server is added or removed (asnaik) (#2910)
---
ambari-web/app/controllers/main/host/details.js | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/ambari-web/app/controllers/main/host/details.js
b/ambari-web/app/controllers/main/host/details.js
index 5f99ceb..4682dc4b 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -1735,10 +1735,15 @@ App.MainHostDetailsController =
Em.Controller.extend(App.SupportClientConfigsDow
constructZookeeperConfigUrlParams: function (data) {
var urlParams = [];
var services = App.Service.find();
+ var zooKeeperRelatedServices =
this.get('zooKeeperRelatedServices').slice(0);
if (App.get('isHaEnabled')) {
- urlParams.push('(type=core-site&tag=' +
data.Clusters.desired_configs['core-site'].tag + ')');
+ zooKeeperRelatedServices.push({
+ serviceName: 'HDFS',
+ typesToLoad: ['core-site'],
+ typesToSave: ['core-site']
+ });
}
- this.get('zooKeeperRelatedServices').forEach(function (service) {
+ zooKeeperRelatedServices.forEach(function (service) {
if (services.someProperty('serviceName', service.serviceName)) {
service.typesToLoad.forEach(function (type) {
if (data.Clusters.desired_configs[type]) {
@@ -1767,7 +1772,15 @@ App.MainHostDetailsController =
Em.Controller.extend(App.SupportClientConfigsDow
this.updateZkConfigs(configs);
var groups = [];
var installedServiceNames = App.Service.find().mapProperty('serviceName');
- this.get('zooKeeperRelatedServices').forEach(function (service) {
+ var zooKeeperRelatedServices =
this.get('zooKeeperRelatedServices').slice(0);
+ if (App.get('isHaEnabled')) {
+ zooKeeperRelatedServices.push({
+ serviceName: 'HDFS',
+ typesToLoad: ['core-site'],
+ typesToSave: ['core-site']
+ });
+ }
+ zooKeeperRelatedServices.forEach(function (service) {
if (installedServiceNames.contains(service.serviceName)) {
var group = {
properties: {},