Oozie coordinator start date set to actual date

2k views Asked by At

Is there a way to set start date of coordinator to actual date? Everytime I want to run my coordinator I have to manually set start date of the coordinator job:

<coordinator-app name="MY_APP" frequency="60" start="2014-11-27T05:00Z" end="2015-01-01T06:00Z" timezone="UTC" xmlns="uri:oozie:coordinator:0.1">

I want to use some kind of varaible that will be set this date for my to date that I run the coordinator:

<coordinator-app name="MY_APP" frequency="60" start="${actualTime}" end="2015-01-01T06:00Z" timezone="UTC" xmlns="uri:oozie:coordinator:0.1">

How can I set the actualTime do the sysdate? I tried use EL function timestamp() but it does not works or maybe I use it wrong. Maybe is there a way to set in the .properties file any variable?

1

There are 1 answers

3
Paul H. On BEST ANSWER

One idea is to pass the sysdate from shell script to the coordinator job thru command line.

See if the answer to a similar question works for you : Oozie coordinator with sysdate as start time