Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3996F1920A for ; Sat, 16 Apr 2016 15:01:26 +0000 (UTC) Received: (qmail 17282 invoked by uid 500); 16 Apr 2016 15:01:25 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 17151 invoked by uid 500); 16 Apr 2016 15:01:25 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 17139 invoked by uid 99); 16 Apr 2016 15:01:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2016 15:01:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6DF802C1F4E for ; Sat, 16 Apr 2016 15:01:25 +0000 (UTC) Date: Sat, 16 Apr 2016 15:01:25 +0000 (UTC) From: =?utf-8?Q?Oliv=C3=A9r_Szab=C3=B3_=28JIRA=29?= To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15935) StackAdvisorException - UnboundLocalError: local variable 'putTezProperty' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15935?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 244263#comment-15244263 ]=20 Oliv=C3=A9r Szab=C3=B3 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.StackAdviso= rException: Stack Advisor reported an error: UnboundLocalError: local varia= ble '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["configurati= ons"]["hive-site"]["properties"]["hive.tez.container.size"]) > putTezProperty =3D self.putProperty(configurations, "tez-site") > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)