Monthly Archives: October 2017

Oozie: CRON style scheduling in Oozie

Cron scheduling adds a lot of flexibility while scheduling jobs using the Oozie coordinator. Its bit tricky, but once you familiarize its going to benefit a lot. Here, just focus on the frequency part in your coordinator.xml <coordinator-app name=”oozie-coordinator” frequency=”0/10 … Continue reading

Posted in oozie, Uncategorized | Tagged , , | Leave a comment

Oozie: How to pass current date to Work Flow

Coordinator.xml <coordinator-app name=”oozie-coordinator” frequency=”1440″ start=”2017-10-06T15:00Z” end=”2099-09-19T13:00Z” timezone=”Canada/Eastern” xmlns=”uri:oozie:coordinator:0.1″> <action> <workflow> <app-path>${workflowxml}</app-path> <configuration> <property> <name>currentDate</name> <value>${coord:formatTime(coord:dateOffset(coord:nominalTime(), 0, ‘DAY’), “yyyyMMdd”)} </value> </property> </configuration> </workflow> </action> </coordinator-app> **Change “0” to -1 if you prefer PREVIOUS DATE Access currentDate in your workflow.xml and pass … Continue reading

Posted in oozie, Uncategorized | Tagged , , , , , | Leave a comment