You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by av...@apache.org on 2016/05/16 17:07:08 UTC

[2/2] ambari git commit: AMBARI-16666 : AMS Service check fails because collector takes too long to start up. (avijayan)

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


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

Branch: refs/heads/branch-2.4
Commit: 928a03ba61a6ddbea97af7d8eb8cea29eadb5f6d
Parents: fd85458
Author: Aravindan Vijayan <av...@hortonworks.com>
Authored: Mon May 16 09:55:56 2016 -0700
Committer: Aravindan Vijayan <av...@hortonworks.com>
Committed: Mon May 16 09:55:56 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/928a03ba/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 32b8fdb..7e81a88 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
@@ -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']