workflow.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <workflow-app name="SleepWorkflow" xmlns="uri:oozie:workflow:0.2">
  2. <start to="Sleep"/>
  3. <action name="Sleep">
  4. <map-reduce>
  5. <job-tracker>${jobTracker}</job-tracker>
  6. <name-node>${nameNode}</name-node>
  7. <configuration>
  8. <property>
  9. <name>mapred.reduce.tasks</name>
  10. <value>1</value>
  11. </property>
  12. <property>
  13. <name>mapred.mapper.class</name>
  14. <value>org.apache.hadoop.examples.SleepJob</value>
  15. </property>
  16. <property>
  17. <name>mapred.reducer.class</name>
  18. <value>org.apache.hadoop.examples.SleepJob</value>
  19. </property>
  20. <property>
  21. <name>mapred.mapoutput.key.class</name>
  22. <value>org.apache.hadoop.io.IntWritable</value>
  23. </property>
  24. <property>
  25. <name>mapred.mapoutput.value.class</name>
  26. <value>org.apache.hadoop.io.NullWritable</value>
  27. </property>
  28. <property>
  29. <name>mapred.output.format.class</name>
  30. <value>org.apache.hadoop.mapred.lib.NullOutputFormat</value>
  31. </property>
  32. <property>
  33. <name>mapred.input.format.class</name>
  34. <value>org.apache.hadoop.examples.SleepJob$SleepInputFormat</value>
  35. </property>
  36. <property>
  37. <name>mapred.partitioner.class</name>
  38. <value>org.apache.hadoop.examples.SleepJob</value>
  39. </property>
  40. <property>
  41. <name>mapred.speculative.execution</name>
  42. <value>false</value>
  43. </property>
  44. <property>
  45. <name>sleep.job.map.sleep.time</name>
  46. <value>0</value>
  47. </property>
  48. <property>
  49. <name>sleep.job.reduce.sleep.time</name>
  50. <value>${REDUCER_SLEEP_TIME}</value>
  51. </property>
  52. </configuration>
  53. </map-reduce>
  54. <ok to="end"/>
  55. <error to="kill"/>
  56. </action>
  57. <kill name="kill">
  58. <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
  59. </kill>
  60. <end name="end"/>
  61. </workflow-app>