Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Urgent Help : Oozie coordinator using days,month,year

Urgent Help : Oozie coordinator using days,month,year

Explorer

Can somebody quicky help me on the below scenario.

Coordinator.properties file
freq=5
coordinator.xml
frequency="${freq}"
Now the above syntax taking file it is taking to run the job every 5 minutes.

But the below thing is not happening for me.

Coordinator.properties file
freq=coord:minutes(5)
coordinator.xml
frequency="${freq}"

Error: Invalid coordinator application attributes, parameter [frequency] = [coord:minutes(5)] must have 5 bit fields. Parsing error For input string: "coord:minutes(5)"

Actually, the business logic is to pass the data from properties file and it should be in days/months/minutes and I am planning to use coord:days(),coord:month() etc
But it's not taking, the bottom line is our coordinator.xml/workflow.xml will not change it will run the same job but in diffrent ways by days, month and year.

Please help

1 REPLY 1
Highlighted

Re: Urgent Help : Oozie coordinator using days,month,year

Master Guru
The properties file will not accept such a syntax - what you're
specifying is an EL function that belongs only within the XML.

Perhaps, if dynamically is the need, you may be interested in using
the CRON syntax instead:
http://archive.cloudera.com/cdh5/cdh/5/oozie/CoordinatorFunctionalSpec.html#a4.4.3._Cron_syntax_in_c...