You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2015/12/15 05:16:27 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/trunk 1bc270aac -> c0b1f4094


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/c0b1f409
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c0b1f409
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c0b1f409

Branch: refs/heads/trunk
Commit: c0b1f4094b51148ad856129e1de4e1fa8bc6bcae
Parents: 1bc270a
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Mon Dec 14 20:15:50 2015 -0800
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Mon Dec 14 20:15:50 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/c0b1f409/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