Skip to content

Instantly share code, notes, and snippets.

@dharkum
Last active August 29, 2015 14:00
Show Gist options
  • Save dharkum/11377509 to your computer and use it in GitHub Desktop.
Save dharkum/11377509 to your computer and use it in GitHub Desktop.
<workflow-app xmlns="uri:oozie:workflow:0.2" name="hive-wf">
<start to="hive-node"/>
<action name="hive-node">
<hive xmlns="uri:oozie:hive-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>default</value>
</property>
</configuration>
<script>samplelog.hiv</script>
<param>DROPDT=${DROPDT}</param>
</hive>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>
</workflow-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment