Skip to content

Instantly share code, notes, and snippets.

@dharkum
Last active August 29, 2015 14:00
Show Gist options
  • Save dharkum/11376727 to your computer and use it in GitHub Desktop.
Save dharkum/11376727 to your computer and use it in GitHub Desktop.
<coordinator-app name="MY_APP" frequency="${coord:months(1)}" start="${jobStart}" end="${jobEnd}" timezone="UTC" xmlns="uri:oozie:coordinator:0.3">
<datasets>
<dataset name="input1" frequency="${coord:months(1)}" initial-instance="${initialInstance}" timezone="UTC">
<uri-template>hcat://headnode0:9083/default/samplelog/dt=${YEAR}-${MONTH}</uri-template>
</dataset>
</datasets>
<input-events>
<data-in name="coordInput1" dataset="input1">
<instance>${coord:current(1)}</instance>
</data-in>
</input-events>
<action>
<workflow>
<app-path>${appPath}</app-path>
<configuration>
<property>
<name>DROPDT</name>
<value>${coord:dateOffset(coord:nominalTime(), -3, 'MONTH')}</value>
</property>
</configuration>
</workflow>
</action>
</coordinator-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment