Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68095115ED for ; Thu, 10 Jul 2014 14:51:24 +0000 (UTC) Received: (qmail 55124 invoked by uid 500); 10 Jul 2014 14:51:23 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 55084 invoked by uid 500); 10 Jul 2014 14:51:23 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 55066 invoked by uid 99); 10 Jul 2014 14:51:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 14:51:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shwetha.gs@inmobi.com designates 209.85.192.181 as permitted sender) Received: from [209.85.192.181] (HELO mail-pd0-f181.google.com) (209.85.192.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 14:51:20 +0000 Received: by mail-pd0-f181.google.com with SMTP id v10so10926088pde.40 for ; Thu, 10 Jul 2014 07:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inmobi.com; s=google; h=from:mime-version:subject:message-id:date:references:in-reply-to:to :content-type:content-transfer-encoding; bh=ou1l+Yac/vpZuTFQkzVYUPNf1EeESD3dKZYnuddDMAc=; b=nL9GFequMYZ9pq9CtPahD3ldn6n9NbpyjtTxKQocJTdK8JCzWzKSBAlOERLS08S0CR +UytgN/cQYqdy/fhLebdwK1Yd/DuasIYV8Xw+hbFp3rhHsVj0/8bigpkETnfwS2Fbe8f tO2YR5mPgehCkKMwKPny8YifmWmonGY3isFhA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:subject:message-id:date :references:in-reply-to:to:content-type:content-transfer-encoding; bh=ou1l+Yac/vpZuTFQkzVYUPNf1EeESD3dKZYnuddDMAc=; b=R3REuN50Xaq/SmmhDNXhx7AAfdIfXQNPBoN/PMyLtgB0WoolFVo9F29KCiQmpfdqWO vX6Vvv87Z2sc/qWPHxXgYxhdQN6rxoSXu6MTWLtA02zXgDpKxdX04HSEnvOvILq4vxSl 1XaSwSWPQR5h2mSQwauHTvc4FGxrAajTfyHBjbRfjCUwijG/kAdmOuTz2v0XOlWC4uak nzv1u8jtJ1I3iZcCarlJnvZJVBkPlnToqkRKCxG17RG3UOe6bB7ZHXxs2A3B1zwyKeJ8 LVh98dYSSPEDl5w3k59pQf5jxo+8oFlLyVBwh5e4DeG7QN7xNyoZkJgcchKBg4UZpHPr keRg== X-Gm-Message-State: ALoCoQn9p0Q+IBEMqdTlz0He/axPkZjmb94DXV5Bs3FIMgLg8H1yZM6WwmOCbxDNJsUThfcFxaxNjDVERaP7DXMMSY/T8V+VXQzqKrQVi4eDWTikyO7te/Q= X-Received: by 10.70.96.135 with SMTP id ds7mr12693025pdb.99.1405003855470; Thu, 10 Jul 2014 07:50:55 -0700 (PDT) Received: from [192.168.1.6] ([122.178.229.178]) by mx.google.com with ESMTPSA id wn7sm228838510pab.18.2014.07.10.07.50.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jul 2014 07:50:53 -0700 (PDT) From: Shwetha GS Mime-Version: 1.0 (1.0) Subject: Re: Using properties in processes Message-Id: Date: Thu, 10 Jul 2014 20:20:53 +0530 References: In-Reply-To: To: "dev@falcon.incubator.apache.org" X-Mailer: iPhone Mail (11D257) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Falcon internally uses oozie. Looks like oozie doesn't support this.=20 Will check oozie tomorrow and see if it can be fixed in oozie Sent from my iPhone > On Jul 10, 2014, at 5:59 PM, Josh Clum wrote: >=20 > It took me forever, but I finally found this error in the bundle logs. If= I > reference a property in my process xml file, >=20 > ie ${falcon_input_partition_filter_hive}" /> >=20 > then I get: >=20 > at > org.apache.oozie.coord.CoordELFunctions.evalAndWrap(CoordELFunctions.java= :696) > at > org.apache.oozie.command.coord.CoordSubmitXCommand.resolveTagContents(Coo= rdSubmitXCommand.java:895) > ... 10 more > Caused by: javax.servlet.jsp.el.ELException: variable > [falcon_input_partition_filter_hive] cannot be resolved > at > org.apache.oozie.util.ELEvaluator$Context.resolveVariable(ELEvaluator.jav= a:106) > at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124) > at > org.apache.commons.el.ExpressionString.evaluate(ExpressionString.java:114= ) > at > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluato= rImpl.java:274) > at > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluato= rImpl.java:190) > at org.apache.oozie.util.ELEvaluator.evaluate(ELEvaluator.java:203) > at > org.apache.oozie.coord.CoordELFunctions.evalAndWrap(CoordELFunctions.java= :687) > ... 11 more >=20 > If I try and use the oozie el functions in my process xml >=20 > ie ${wf:conf('falcon_input_partition_filter_hive')}" /> >=20 > then I get: >=20 > at > org.apache.oozie.coord.CoordELFunctions.evalAndWrap(CoordELFunctions.java= :696) > at > org.apache.oozie.command.coord.CoordSubmitXCommand.resolveTagContents(Coo= rdSubmitXCommand.java:895) > ... 10 more > Caused by: javax.servlet.jsp.el.ELException: No function is mapped to the > name "wf:conf" > at org.apache.commons.el.Logger.logError(Logger.java:481) > at org.apache.commons.el.Logger.logError(Logger.java:498) > at org.apache.commons.el.Logger.logError(Logger.java:525) > at > org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java= :150) > at > org.apache.commons.el.ExpressionString.evaluate(ExpressionString.java:114= ) > at > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluato= rImpl.java:274) > at > org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluato= rImpl.java:190) > at org.apache.oozie.util.ELEvaluator.evaluate(ELEvaluator.java:203) > at > org.apache.oozie.coord.CoordELFunctions.evalAndWrap(CoordELFunctions.java= :687) > ... 11 more >=20 > I also tried defining a property earlier in my process xml and then using > it later with no luck. >=20 > ie >=20 > >=20 > ... >=20 > > ... > >=20 > ... >=20 > >=20 > which still gives me the ELException: variable > [falcon_input_partition_filter_hive] cannot be resolved. >=20 > So it would seem that there is no way to access configurations within the > process xml itself. Is this true? >=20 > Thanks, >=20 > Josh >=20 >=20 > On Wed, Jul 9, 2014 at 11:05 AM, Seetharam Venkatesh < > venkatesh@innerzeal.com> wrote: >=20 >> Josh, >>=20 >> These variables are exposed to user. The convention is: >>=20 >> falcon_${input_feed_name}_partition_filter_pig >> falcon_${input_feed_name}_partition_filter_hive >> falcon_${input_feed_name}_partition_filter_java >> falcon_${input_feed_name}_datain_partitions_hive >>=20 >> You should be able to use any of these. >>=20 >> If you are having issues with oozie starting the jobs, its good to look = at >> oozie.log and see if there an error with any EL. >>=20 >> Thanks! >>=20 >>=20 >> On Wed, Jul 9, 2014 at 12:57 PM, Srikanth Sundarrajan > wrote: >>=20 >>> In general it is not a good practice to refer to Falcon internal >>> variables, but this might be a public one. Will let @Venkatesh confirm >>> this. If it is indeed public, this ought to work, but this may also lea= d >> to >>> the possibility of cyclic referencing of properties. A peek into the >> Oozie >>> logs might give ideas on what might be the reason for coord not startin= g. >>>=20 >>> Regards >>> Srikanth Sundarrajan >>>=20 >>>=20 >>> ---------------------------------------- >>>> From: joshclum@gmail.com >>>> Date: Tue, 8 Jul 2014 15:47:10 -0400 >>>> Subject: Using properties in processes >>>> To: dev@falcon.incubator.apache.org >>>>=20 >>>> Hi, >>>>=20 >>>> Is it possible to reference properties like >>> falcon_input_partition_filter_hive >>>> inside of the process xml definition itself? >>>>=20 >>>> For instance: >>>>=20 >>>> >>>> ... >>>> >>> ${falcon_input_partition_filter_hive}" /> >>>>=20 >>>> ... >>>>=20 >>>> >>>>=20 >>>>=20 >>>> When I try to do this, I don't get any errors, but my process never >>> starts >>>> up either. Looked in the falcon logs with no luck. Ideas? >>>>=20 >>>> Thanks, >>>> Josh >>=20 >>=20 >>=20 >> -- >> Regards, >> Venkatesh >>=20 >> =E2=80=9CPerfection (in design) is achieved not when there is nothing mo= re to add, >> but rather when there is nothing more to take away.=E2=80=9D >> - Antoine de Saint-Exup=C3=A9ry >>=20 --=20 _____________________________________________________________ The information contained in this communication is intended solely for the= =20 use of the individual or entity to whom it is addressed and others=20 authorized to receive it. It may contain confidential or legally privileged= =20 information. If you are not the intended recipient you are hereby notified= =20 that any disclosure, copying, distribution or taking any action in reliance= =20 on the contents of this information is strictly prohibited and may be=20 unlawful. If you have received this communication in error, please notify= =20 us immediately by responding to this email and then delete it from your=20 system. The firm is neither liable for the proper and complete transmission= =20 of the information contained in this communication nor for any delay in its= =20 receipt.