ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject ambari git commit: AMBARI-8266. Hive Tez recommendation warning (srimanth)
Date Tue, 11 Nov 2014 00:43:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 33f2c37b4 -> fc87882dc


AMBARI-8266. Hive Tez recommendation warning (srimanth)


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

Branch: refs/heads/branch-1.7.0
Commit: fc87882dcad80611745c9c50b889d01d6d22b75f
Parents: 33f2c37
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Mon Nov 10 15:26:45 2014 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Mon Nov 10 16:02:55 2014 -0800

----------------------------------------------------------------------
 .../main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py   | 2 +-
 .../src/main/resources/stacks/HDP/2.1/services/stack_advisor.py  | 2 +-
 .../src/test/python/stacks/2.1/common/test_stack_advisor.py      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fc87882d/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py
b/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py
index 2c16a61..6c6aeea 100644
--- a/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/stack_advisor.py
@@ -332,7 +332,7 @@ class BIGTOP08StackAdvisor(BaseBIGTOP08StackAdvisor):
     containerSize = min(clusterData['containers'] * clusterData['ramPerContainer'], containerSize)
     putHiveProperty = self.putProperty(configurations, "hive-site")
     putHiveProperty('hive.auto.convert.join.noconditionaltask.size', int(round(containerSize
/ 3)) * 1048576)
-    putHiveProperty('hive.tez.java.opts', "-server -Xmx" + str(int(round(0.8 * containerSize)))
+    putHiveProperty('hive.tez.java.opts', "-server -Xmx" + str(int(round((0.8 * containerSize)
+ 0.5)))
                     + "m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8 -XX:+UseNUMA -XX:+UseParallelGC")
     putHiveProperty('hive.tez.container.size', containerSize)
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/fc87882d/ambari-server/src/main/resources/stacks/HDP/2.1/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.1/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.1/services/stack_advisor.py
index 211d803..956a543 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.1/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.1/services/stack_advisor.py
@@ -42,7 +42,7 @@ class HDP21StackAdvisor(HDP206StackAdvisor):
     containerSize = min(clusterData['containers'] * clusterData['ramPerContainer'], containerSize)
     putHiveProperty = self.putProperty(configurations, "hive-site")
     putHiveProperty('hive.auto.convert.join.noconditionaltask.size', int(round(containerSize
/ 3)) * 1048576)
-    putHiveProperty('hive.tez.java.opts', "-server -Xmx" + str(int(round(0.8 * containerSize)))
+    putHiveProperty('hive.tez.java.opts', "-server -Xmx" + str(int(round((0.8 * containerSize)
+ 0.5)))
                     + "m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8 -XX:+UseNUMA -XX:+UseParallelGC
-XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps")
     putHiveProperty('hive.tez.container.size', containerSize)
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/fc87882d/ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
index 65a604b..1dd7211 100644
--- a/ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
+++ b/ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
@@ -101,7 +101,7 @@ class TestHDP21StackAdvisor(TestCase):
       "hive-site": {
         "properties": {
           "hive.auto.convert.join.noconditionaltask.size": "1048576000",
-          "hive.tez.java.opts": "-server -Xmx2400m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8
-XX:+UseNUMA -XX:+UseParallelGC -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps",
+          "hive.tez.java.opts": "-server -Xmx2401m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8
-XX:+UseNUMA -XX:+UseParallelGC -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps",
           "hive.tez.container.size": "3000"
         }
       }
@@ -151,7 +151,7 @@ class TestHDP21StackAdvisor(TestCase):
       "hive-site": {
         "properties": {
           "hive.auto.convert.join.noconditionaltask.size": "268435456",
-          "hive.tez.java.opts": "-server -Xmx614m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8
-XX:+UseNUMA -XX:+UseParallelGC -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps",
+          "hive.tez.java.opts": "-server -Xmx615m -Djava.net.preferIPv4Stack=true -XX:NewRatio=8
-XX:+UseNUMA -XX:+UseParallelGC -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps",
           "hive.tez.container.size": "768"
         }
       }


Mime
View raw message