You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/06/30 16:37:16 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 d3b11b00b -> 8086a287a


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

Branch: refs/heads/branch-2.1
Commit: 8086a287a73ff64c9be5218e8f11dbf62559d9cf
Parents: d3b11b0
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Tue Jun 30 17:36:55 2015 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Tue Jun 30 17:36:55 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/8086a287/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 = ""