Kaynağa Gözat

AMBARI-16666 : AMS Service check fails because collector takes too long to start up. (avijayan)

Aravindan Vijayan 9 yıl önce
ebeveyn
işleme
928a03ba61

+ 2 - 2
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py

@@ -213,9 +213,10 @@ else:
   hbase_heapsize = master_heapsize
 
 max_open_files_limit = default("/configurations/ams-hbase-env/max_open_files_limit", "32768")
+hostname = config["hostname"]
 
 if not is_hbase_distributed:
-  zookeeper_quorum_hosts = 'localhost'
+  zookeeper_quorum_hosts = hostname
   zookeeper_clientPort = '61181'
 else:
   zookeeper_quorum_hosts = ",".join(config['clusterHostInfo']['zookeeper_hosts'])
@@ -295,7 +296,6 @@ ams_grafana_ini_template = config['configurations']['ams-grafana-ini']['content'
 hbase_staging_dir = default("/configurations/ams-hbase-site/hbase.bulkload.staging.dir", "/amshbase/staging")
 
 #for create_hdfs_directory
-hostname = config["hostname"]
 hdfs_user_keytab = config['configurations']['hadoop-env']['hdfs_user_keytab']
 hdfs_user = config['configurations']['hadoop-env']['hdfs_user']
 hdfs_principal_name = config['configurations']['hadoop-env']['hdfs_principal_name']