Search code examples
oozieoozie-coordinator

Setup an oozie that stops after a few runs


I need to setup an Oozie job that runs every 1 hour from 9am till 5pm and then stop for the day. And then do the same for all week days. I know how to set up something that starts at a given time and does that, but not able to figure out how to make it stop at 5pm. Appreciate the help!


Solution

  • I figured out that, Oozie frequency syntax is no different from Crontab. So, I did something like this to make it happen.

    frequency="00 09-17 * * *"