You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2016/04/16 16:57:25 UTC

[jira] [Updated] (AMBARI-15935) StackAdvisorException - UnboundLocalError: local variable 'putTezProperty'

     [ https://issues.apache.org/jira/browse/AMBARI-15935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sumit Mohanty updated AMBARI-15935:
-----------------------------------
    Attachment: AMBARI-15935.patch

> 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
>
>         Attachments: AMBARI-15935.patch
>
>
> 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)