Sumit Mohanty created AMBARI-15935:
--------------------------------------
Summary: StackAdvisorException - UnboundLocalError: local variable
'putTezProperty'
Key: AMBARI-15935
URL: https://issues.apache.org/jira/browse/AMBARI-15935
Project: Ambari
Issue Type: Bug
Components: stacks
Affects Versions: 2.4.0
Reporter: Sumit Mohanty
Assignee: Sumit Mohanty
Fix For: 2.4.0
Caused by:
org.apache.ambari.server.api.services.stackadvisor.StackAdvisorException: Stack
Advisor reported an error: UnboundLocalError: local variable 'putTezProperty'
referenced before assignment
StdOut file: /var/run/ambari-server/stack-recommendations/5/stackadvisor.out
Here is the code ...
{code}
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")
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)