ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-12217. Distributed shell app in Yarn service check may be slow.(vbrodetskyi)
Date Tue, 30 Jun 2015 14:38:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 5882f4788 -> 5605e4ed7


AMBARI-12217. Distributed shell app in Yarn service check may be slow.(vbrodetskyi)


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

Branch: refs/heads/trunk
Commit: 5605e4ed7d5e747b387235d13de5b99de1689f6d
Parents: 5882f47
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Tue Jun 30 17:37:56 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Tue Jun 30 17:37:56 2015 +0300

----------------------------------------------------------------------
 .../YARN/2.1.0.2.0/package/scripts/params_linux.py               | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5605e4ed/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
index 8fc554b..790c51b 100644
--- a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
+++ b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py
@@ -178,7 +178,9 @@ ats_host = set(default("/clusterHostInfo/app_timeline_server_hosts", []))
 has_ats = not len(ats_host) == 0
 
 nm_hosts = default("/clusterHostInfo/nm_hosts", [])
-number_of_nm = len(nm_hosts)
+
+# don't using len(nm_hosts) here, because check can take too much time on large clusters
+number_of_nm = 1
 
 # default kinit commands
 rm_kinit_cmd = ""


Mime
View raw message