Oozie time zone settings

I am new to oozie and have a problem changing the default time zone of oozie. I am writing oozie coordinator work and trying to specify the time zone, for example

<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 described here http://oozie.apache.org/docs/3.2.0-incubating/CoordinatorFunctionalSpec.html#a4._Datetime_Frequency_and_Time-Period_Representation But this does not work. Can someone please tell me where I am going wrong?

Secondly, I want to get the date the oozie workflow begins. Suppose that I want to start the work of the coordinator on the last date, say, a week ago, that the work continued all day with a frequency of 15 minutes. what I want is to have a date at the time the workflow started.

Thanks so much for your precious time.

+8
oozie
source share
3 answers

you can set this property in your

oozie-site.xml

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

+1
source share

Hi, Junaid and ygnhzeus,

To change the time zone in oozie, you only need to go and change the default time zone in the oozie-default.xml file.

 **<property> <name>oozie.processing.timezone</name> <value>GMT+0530</value> <description> Oozie server timezone. Valid values are UTC and GMT(+/-)####, for example 'GMT+0530' would be India timezone. All dates parsed and genered dates by Oozie Coordinator/Bundle will be done in the specified timezone. The default value of 'UTC' should not be changed under normal circumtances. If for any reason is changed, note that GMT(+/-)#### timezones do not observe DST changes. </description> </property>** 

Now just stop oozie and run it again. Thanks, Amudhan K., Data Engineer.

0
source share

You can also try:

 $ oozie info -timezones<br><br> 

The format is "SHORT_NAME (ID)".

Give the identifier to the -timezone argument.

GMT can also be used (for example, GMT-07: 00, GMT-0700, GMT + 05: 30, GMT + 0530).

Available time zones:

  SST (Pacific/Midway)<br> NUT (Pacific/Niue)<br> SST (Pacific/Pago_Pago)<br> SST (Pacific/Samoa)<br> SST (US/Samoa)<br> HAST (America/Adak)<br> HAST (America/Atka)<br> HST (HST)<br> ... 

If the required time zone is under one given by this command, you can directly use it in your coordinator.

0
source share

All Articles