You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2015/04/16 03:58:39 UTC

ambari git commit: AMBARI-10480. BE: Extend stack-advisor to recommend property_value_attributes for Hive/Tez - fixes (srimanth)

Repository: ambari
Updated Branches:
  refs/heads/trunk bcc80c684 -> 2a7ec815f


AMBARI-10480. BE: Extend stack-advisor to recommend property_value_attributes for Hive/Tez - fixes (srimanth)


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

Branch: refs/heads/trunk
Commit: 2a7ec815fede26a3282983e6b61fc0cd3d487d96
Parents: bcc80c6
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Wed Apr 15 18:58:14 2015 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Wed Apr 15 18:58:24 2015 -0700

----------------------------------------------------------------------
 .../stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml      | 4 ++--
 .../src/main/resources/stacks/HDP/2.2/services/stack_advisor.py  | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2a7ec815/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml
index f849c87..1e0feb2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml
@@ -90,11 +90,11 @@ export METASTORE_PORT={{hive_metastore_port}}
       <type>value-list</type>
       <entries>
         <entry>
-          <value>On</value>
+          <value>on</value>
           <label>On</label>
         </entry>
         <entry>
-          <value>Off</value>
+          <value>off</value>
           <label>Off</label>
         </entry>
       </entries>

http://git-wip-us.apache.org/repos/asf/ambari/blob/2a7ec815/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
index e5f8b5c..c3bf9ff 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
@@ -197,6 +197,9 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
 
     container_size = "512"
 
+    if not "yarn-site" in configurations:
+      self.recommendYARNConfigurations(configurations, clusterData, services, hosts)
+
     if "yarn-site" in configurations and \
       "yarn.scheduler.minimum-allocation-mb" in configurations["yarn-site"]["properties"]:
       container_size = configurations["yarn-site"]["properties"]["yarn.scheduler.minimum-allocation-mb"]