Fully agreed with Robert. Reiterating .. Please use UTC in all cases. And define all time values (such as start time, end time , initial time) based on UTC. For your example, 00:03 local time is previous day 20:03 UTC time.
"timezone"parameter doesn't have any impact in this case -- only for DST. Regards, Mohammad On Friday, October 11, 2013 6:21 PM, Robert Kanter <[email protected]> wrote: Hi Serega, Oozie always runs everything in "oozie.processing.timezone", which defaults to UTC. The "timezone" in the coordinator is a little misleading as it doesn't actually change the timezone; only the daylight savings time rules from this timezone are used. We typically recommend users to leave the "oozie.processing.timezone" at UTC and to do the math for setting the times in your coordinator (like Mohammad said). - Robert On Thu, Oct 10, 2013 at 2:56 AM, Serega Sheypak <[email protected]>wrote: > Yesterday I've set > oozie.processing.timezone = UTC (back, it's default value) > and set startTime=20:03 of previous day. > timezone for coordinator was: GMT+0400, GMT+0000, UTC > > Yes. It works. It really starts as 00:03 of the next day. > But really "timezone" value (GMT+0400, GMT+0000, UTC) didn't change > something. Oozie always adds +4 hours. > > Can you please explain this trick? > I just want to run coordinator each day at 00:03 why do I have to perform > such non evident hour calculations for each coordinator? > > Please explain. I don't understand the reason of complicity. Thank you. > > > > 2013/10/10 Mohammad Islam <[email protected]> > > > Can you please set two timezone values ( oozie.processing.timezone > > and timezone) to UTC? > > Basically don't specify any timezone value other than UTC. > > > > Then try with the following start times : startTime=20:03 <previous > > days>/startTime=00:03/startTime=04:03. > > Please let me know what you got from this three cases. > > > > After getting your response, i can explain to you (if needed). > > > > Regards, > > Mohammad > > > > > > > > > > ________________________________ > > From: Serega Sheypak <[email protected]> > > To: [email protected] > > Sent: Wednesday, October 9, 2013 12:06 PM > > Subject: HowTo make Oozie respect timezone? > > > > > > Hi, I completely don't understand how timezones work in oozie. > > Oozie server is in GMT+0400 > > Oozie timezone property: oozie.processing.timezone=UTC > > > > I want to run daily coordinator at 00:02 each day > > What do I have to set in coordinator fields? > > > > Right know I try to set > > startTime=00:03 > > timeZone=GMT+0400 > > > > And Oozie starts coordinator at 04:03. > > I've tried t set timezone of coordinator to UTC, GMT-0400, nothing helps. > > > > Anyway oozie starts coordinator at 04:03 > > What do I do wrong? > > >
