oozie timezone settings

Junaid picture Junaid · Dec 20, 2012 · Viewed 9.9k times · Source

i am new to oozie and having problem in changing oozie default time zone. I am writing oozie coordinator job and have tried to specify timezone like

<coordinator-app name="hello-coord" frequency="${coord:days(1)}"
                  start="2009-01-02T08:00Z" end="2009-01-04T08:00Z" timezone="GMT+05:30"
                 xmlns="uri:oozie:coordinator:0.1">

as explained here http://oozie.apache.org/docs/3.2.0-incubating/CoordinatorFunctionalSpec.html#a4._Datetime_Frequency_and_Time-Period_Representation but it does not work. Can anyone please tell me where do i go wrong?

Secondly, i want to get date time when the oozie workflow starts. Suppose i want to run a coordinator job for a past date, say a week ago, that job ran for a whole day with frequency of 15 mins. what i want is to have date time at the time when the workflow started.

Thank you very much for your precious time

Answer

ygnhzeus picture ygnhzeus · Jun 17, 2013

you may set this property in your

oozie-site.xml

<property> <name>oozie.processing.timezone</name> <value>GMT+0400</value> </property>