ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-15935. StackAdvisorException - UnboundLocalError: local variable putTezProperty (smohanty)
Date Sat, 16 Apr 2016 15:22:19 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 67cb6a4b2 -> 36e313866


AMBARI-15935. StackAdvisorException - UnboundLocalError: local variable putTezProperty (smohanty)


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

Branch: refs/heads/trunk
Commit: 36e3138662489d20df3c8529644b6be687e5ee34
Parents: 67cb6a4
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Sat Apr 16 07:58:22 2016 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Sat Apr 16 07:58:22 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/36e31386/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
index 6113fa9..66076f2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
@@ -169,9 +169,9 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
   def recommendTezConfigurations(self, configurations, clusterData, services, hosts):
     super(HDP23StackAdvisor, self).recommendTezConfigurations(configurations, clusterData,
services, hosts)
 
+    putTezProperty = self.putProperty(configurations, "tez-site")
     if "hive-site" in services["configurations"] and "hive.tez.container.size" in services["configurations"]["hive-site"]["properties"]:
       putTezProperty("tez.task.resource.memory.mb", services["configurations"]["hive-site"]["properties"]["hive.tez.container.size"])
-    putTezProperty = self.putProperty(configurations, "tez-site")
     # remove 2gb limit for tez.runtime.io.sort.mb
     # in HDP 2.3 "tez.runtime.sorter.class" is set by default to PIPELINED, in other case
comment calculation code below
     taskResourceMemory = int(configurations["tez-site"]["properties"]["tez.task.resource.memory.mb"])


Mime
View raw message