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/18 21:19:16 UTC

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

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

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


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

commit d71c9a621dae5a4f9fae010e89440abee05dfca2
Author: Attila Magyar <m....@gmail.com>
AuthorDate: Wed Jul 18 23:19:14 2018 +0200

    AMBARI-24300. Error in Tez Service Advisor for HDP 3.0 (amagyar) (#1771)
---
 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