falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishav Rohit (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-368) falcon EL expression not working through properties
Date Wed, 05 Aug 2015 17:23:04 GMT

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

Rishav Rohit commented on FALCON-368:
-------------------------------------

hello [~samarthg] I am able to use 
<property name="yday_date" value="${formatTime(dateOffset(instanceTime(), -1, 'DAY'),'yyyy-MM-dd')}"/>
in my Falcon process and pass it to Oozie SSH action. Check this thread https://mail-archives.apache.org/mod_mbox/falcon-dev/201508.mbox/ajax/%3CCAG5DmYBF%2Bw9a5aC36gwwYvVw6BM%3DoOdw2BZSwEhT2ozBrSPRPg%40mail.gmail.com%3E
for details.

> falcon EL expression not working through properties
> ---------------------------------------------------
>
>                 Key: FALCON-368
>                 URL: https://issues.apache.org/jira/browse/FALCON-368
>             Project: Falcon
>          Issue Type: Bug
>            Reporter: Samarth Gupta
>
> if some property is having value in form of EL expression it is not being recognized
by oozie. 
> for example : 
> {code}
>  <property name="fileTime" value="${formatTime(dateOffset(instanceTime(), 1, 'DAY'),
'yyyy-MMM-dd')}"/>
>        <property name="user" value="${user()}"/>
>       <property name="baseTime" value="${today(0,0)}"/>
> {code}
> gives following error in oozie logs : 
> {code}
> 2014-03-20 08:53:06,720 ERROR pool-2-thread-10 CoordActionInputCheckXCommand - USER[-]
GROUP[-] TOKEN[-] APP[-] JOB[0000084-140320052649673-oozie-oozi-C] ACTION[0000084-140320052649
> 673-oozie-oozi-C@1] XException,
> org.apache.oozie.command.CommandException: E1021: Coord Action Input Check Error: Unable
to evaluate :${today(0,0)}:
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.execute(CoordActionInputCheckXCommand.java:166)
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.execute(CoordActionInputCheckXCommand.java:60)
>         at org.apache.oozie.command.XCommand.call(XCommand.java:277)
>         at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:344)
>         at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:273)
>         at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:195)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:701)
> Caused by: java.lang.Exception: Unable to evaluate :${today(0,0)}:
>         at org.apache.oozie.coord.CoordELFunctions.evalAndWrap(CoordELFunctions.java:661)
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.resolveTagContents(CoordActionInputCheckXCommand.java:262)
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.materializeDataProperties(CoordActionInputCheckXCommand.java:243)
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.checkInput(CoordActionInputCheckXCommand.java:221)
>         at org.apache.oozie.command.coord.CoordActionInputCheckXCommand.execute(CoordActionInputCheckXCommand.java:135)
>         ... 8 more
> Caused by: javax.servlet.jsp.el.ELException: An error occurred while evaluating function
"today"
>         at org.apache.commons.el.Logger.logError(Logger.java:484)
>         at org.apache.commons.el.Logger.logError(Logger.java:545)
>         at org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:174)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message