You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by am...@apache.org on 2018/07/19 08:29:36 UTC

[ambari] branch branch-2.7 updated: AMBARI-24300. Error in Tez Service Advisor for HDP 3.0 (amagyar) (#1771) (#1786)

This is an automated email from the ASF dual-hosted git repository.

amagyar pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new e35a81f  AMBARI-24300. Error in Tez Service Advisor for HDP 3.0 (amagyar) (#1771) (#1786)
e35a81f is described below

commit e35a81faf5e6b3cdeb6d2716e53118afbcdf309f
Author: Attila Magyar <m....@gmail.com>
AuthorDate: Thu Jul 19 10:29:34 2018 +0200

    AMBARI-24300. Error in Tez Service Advisor for HDP 3.0 (amagyar) (#1771) (#1786)
---
 ambari-server/src/main/resources/stacks/stack_advisor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py b/ambari-server/src/main/resources/stacks/stack_advisor.py
index 4e4f4e5..551c2bd 100644
--- a/ambari-server/src/main/resources/stacks/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/stack_advisor.py
@@ -1311,7 +1311,7 @@ class DefaultStackAdvisor(StackAdvisor):
     self.logger.info("Containers per node - cluster[containers]: " + str(cluster["containers"]))
 
     if cluster["containers"] * cluster["minContainerSize"] > cluster["totalAvailableRam"]:
-      cluster["containers"] = ceil(cluster["totalAvailableRam"] / cluster["minContainerSize"])
+      cluster["containers"] = int(ceil(cluster["totalAvailableRam"] / cluster["minContainerSize"]))
       self.logger.info("Modified number of containers based on provided value for yarn.scheduler.minimum-allocation-mb")
       pass