Pārlūkot izejas kodu

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

Sumit Mohanty 9 gadi atpakaļ
vecāks
revīzija
c0b1f4094b

+ 4 - 1
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