Oozie coordinator-app: execute job every Nth minute divisible by M -


i have hive script executing using oozie coordinator every 10 minutes. when launched oozie coordinator-app, suppose have started @ 08:03, first workflow starts @ time, next 08:13, , 08:23, , on.

what want execute workflow every clock time hh:mm, mm divisible 10. assuming same scenario above, want happen this: first workflow execute @ 08:10, , 08:20, , on.

how do in oozie? how when every 5 minutes (the last m of minute either 5 or 0)? input.

in order run coordinator job @ frequency, can use following directives

<coordinator-app name="app" frequency="10" start="2015-07-10t12:00z" end="2016-01-01t00:00z" timezone="utc" xmlns="uri:oozie:coordinator:0.1">

this run every 10 minutes, starting @ 12:00 utc time today. same goes running every 5 minutes, replace frequency="10" frequency="5". to have run every nth minute divisible m, have ensure start parameter set correctly.

another option if using more recent version of oozie (4.1.0) use cron scheduler. allow schedule oozie coordinators in cron-like fashion if you're familiar. see http://blog.cloudera.com/blog/2014/04/how-to-use-cron-like-scheduling-in-apache-oozie/ , https://issues.apache.org/jira/browse/oozie-1306


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -