Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-12-2016 09:56 AM - edited 09-16-2022 03:19 AM
@Former Member,
I want to use Expression Language in Feed Entity, just like the case we do in process entity For Example:
Process.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <process name="yearWiseReplication-process" xmlns="uri:falcon:process:0.1"> <clusters> ..... <properties> <property name="feed_date" value="${formatTime(dateOffset(instanceTime(), -1, 'DAY'),'yyyy-MM-dd')}" /> </properties> .... </process>
Wanted to use in the following away, But I'm failing
Feed.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <feed name="yearWiseReplication-output-feed" description="yearWiseReplication-output-feed" xmlns="uri:falcon:feed:0.1"> .... <locations> <location type="data" path="/hdptmp/availabilityYear/${YEAR}-${MONTH}-${DAY-1}" /> </locations> .... </feed>
My objective is to run the my job which processes previous day data(yesterday's data)
Created 05-12-2016 07:02 PM
You cannot use ${DAY-1} in feed. IF you want to process previous day's data then you can achieve it using process by using yesterday EL expression.
<inputs>
<input name="input" feed="SampleInput" start="yesterday(0,0)" end="today(-1,0)" />
</inputs>
Created 05-12-2016 07:02 PM
You cannot use ${DAY-1} in feed. IF you want to process previous day's data then you can achieve it using process by using yesterday EL expression.
<inputs>
<input name="input" feed="SampleInput" start="yesterday(0,0)" end="today(-1,0)" />
</inputs>
Created 05-13-2016 11:50 AM
Thanks @Sowmya Ramesh, I will try and will let you know.