ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivér Szabó (JIRA) <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15935) StackAdvisorException - UnboundLocalError: local variable 'putTezProperty'
Date Sat, 16 Apr 2016 15:01:25 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-15935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244263#comment-15244263
] 

Olivér Szabó commented on AMBARI-15935:
---------------------------------------

+1 for the 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)

Mime
View raw message