Created
February 4, 2012 20:19
-
-
Save rclayton-the-terrible/1739871 to your computer and use it in GitHub Desktop.
Oozie Workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<workflow-app name='example' xmlns="uri:oozie:workflow:0.1"> | |
<start to='firstjob' /> | |
<action name="firstjob"> | |
<map-reduce> | |
<job-tracker>${jobtracker}</job-tracker> | |
<name-node>${namenode}</name-node> | |
<configuration> | |
<property><name>mapred.mapper.class</name><value>org.apache.hadoop.example.IdMapper</value></property> | |
<property><name>mapred.reducer.class</name><value>org.apache.hadoop.example.IdReducer</value></property> | |
<property><name>mapred.map.tasks</name><value>1</value></property> | |
<property><name>mapred.input.dir</name><value>${input}</value></property> | |
<property><name>mapred.output.dir</name><value>/usr/foo/${wf:id()}/temp1</value></property> | |
</configuration> | |
</map-reduce> | |
<ok to="end" /> | |
<error to="kill" /> | |
</action> | |
<kill name="kill"> | |
<message>Map/Reduce failed, error message[${wf:errorMessage()}]</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