You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2016/04/16 17:22:19 UTC
ambari git commit: AMBARI-15935. StackAdvisorException -
UnboundLocalError: local variable putTezProperty (smohanty)
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 <sm...@hortonworks.com>
Authored: Sat Apr 16 07:58:22 2016 -0700
Committer: Sumit Mohanty <sm...@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"])