ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-14378. Issue with setting zookeeper quorum to localhost in Kerberized env (Aravindan Vijayan via smohanty)
Date Tue, 15 Dec 2015 04:17:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 2e6b87872 -> 9c92aab77


AMBARI-14378. Issue with setting zookeeper quorum to localhost in Kerberized env (Aravindan
Vijayan via smohanty)


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

Branch: refs/heads/branch-2.2
Commit: 9c92aab77b6ac579cb85b028efcb27b30924968e
Parents: 2e6b878
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Mon Dec 14 20:15:50 2015 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Mon Dec 14 20:17:23 2015 -0800

----------------------------------------------------------------------
 .../AMBARI_METRICS/0.1.0/package/scripts/params.py              | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9c92aab7/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
index 9125a01..87fd476 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
@@ -144,7 +144,10 @@ else:
 
 max_open_files_limit = default("/configurations/ams-hbase-env/max_open_files_limit", "32768")
 
-zookeeper_quorum_hosts = 'localhost'
+if not is_hbase_distributed:
+  zookeeper_quorum_hosts = 'localhost'
+else:
+  zookeeper_quorum_hosts = default("/hostname", 'localhost')
 
 ams_checkpoint_dir = config['configurations']['ams-site']['timeline.metrics.aggregator.checkpoint.dir']
 hbase_pid_dir = status_params.hbase_pid_dir


Mime
View raw message