Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 18th, 2013  |  syntax: XML  |  size: 1.85 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <workflow-app name="test" xmlns="uri:oozie:workflow:0.4">
  2.     <start to="load"/>
  3.     <action name="load">
  4.         <hive xmlns="uri:oozie:hive-action:0.2">
  5.             <job-tracker>${jobTracker}</job-tracker>
  6.             <name-node>${nameNode}</name-node>
  7.             <configuration>
  8.                 <property>
  9.                     <name>oozie.hive.defaults</name>
  10.                     <value>hive-default.xml</value>
  11.                 </property>
  12.             </configuration>
  13.             <script>load.sql</script>
  14.             <file>/out.txt#out.txt</file>
  15.         </hive>
  16.         <ok to="asatz"/>
  17.         <error to="kill"/>
  18.     </action>
  19.     <action name="asatz">
  20.         <hive xmlns="uri:oozie:hive-action:0.2">
  21.             <job-tracker>${jobTracker}</job-tracker>
  22.             <name-node>${nameNode}</name-node>
  23.             <configuration>
  24.                 <property>
  25.                     <name>oozie.hive.defaults</name>
  26.                     <value>hive-default.xml</value>
  27.                 </property>
  28.             </configuration>
  29.             <script>asatz.sql</script>
  30.         </hive>
  31.         <ok to="ksatz"/>
  32.         <error to="kill"/>
  33.     </action>
  34.  
  35. ...    
  36.  
  37.     <action name="esatz">
  38.         <hive xmlns="uri:oozie:hive-action:0.2">
  39.             <job-tracker>${jobTracker}</job-tracker>
  40.             <name-node>${nameNode}</name-node>
  41.             <configuration>
  42.                 <property>
  43.                     <name>oozie.hive.defaults</name>
  44.                     <value>hive-default.xml</value>
  45.                 </property>
  46.             </configuration>
  47.             <script>esatz.sql</script>
  48.         </hive>
  49.         <ok to="end"/>
  50.         <error to="kill"/>
  51.     </action>
  52.     <kill name="kill">
  53.         <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
  54.     </kill>
  55.     <end name="end"/>
  56. </workflow-app>