ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-13869. AMS validation asks to set hbase_master_xmn_size to 4123168640 MB. (Aravindan Vijayan via swagle)
Date Fri, 13 Nov 2015 23:25:39 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 29027ed75 -> 4e237b495


AMBARI-13869. AMS validation asks to set hbase_master_xmn_size to 4123168640 MB. (Aravindan
Vijayan via swagle)


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

Branch: refs/heads/trunk
Commit: 4e237b495b48e8b97bbf3928b02d7ef4a5d15c9e
Parents: 29027ed
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Fri Nov 13 15:25:31 2015 -0800
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Fri Nov 13 15:25:31 2015 -0800

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4e237b49/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index 878b2cd..c8114a4 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -972,7 +972,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
             collector_heapsize = int((unusedMemory - 4294967296)/5) + to_number(ams_env.get("metrics_collector_heapsize"))*1048576
             hbase_heapsize = int((unusedMemory - 4294967296)*4/5) + to_number(properties.get(heapPropertyToIncrease))*1048576
             hbase_heapsize = min(32*1024*1024*1024, hbase_heapsize) #Make sure heapsize <
32GB
-            xmn_size = round_to_n(0.12*hbase_heapsize,128)
+            xmn_size = round_to_n(0.12*hbase_heapsize/1048576,128)
 
             msg = "{0} MB RAM is unused on the host {1} based on components " \
                   "assigned. Consider allocating  {2} MB to " \


Mime
View raw message