| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <workflow-app xmlns="uri:oozie:workflow:0.4" name="test-wf"> |
| <global> |
| <job-tracker>foo</job-tracker> |
| <name-node>bar</name-node> |
| <configuration> |
| <property> |
| <name>a</name> |
| <value>A</value> |
| </property> |
| <property> |
| <name>b</name> |
| <value>B</value> |
| </property> |
| </configuration> |
| </global> |
| |
| <start to="a"/> |
| |
| <action name="a"> |
| <hive xmlns="uri:oozie:hive-action:0.2"> |
| <prepare> |
| <delete path="/tmp"/> |
| <mkdir path="/tmp"/> |
| </prepare> |
| <configuration> |
| <property> |
| <name>c</name> |
| <value>C</value> |
| </property> |
| </configuration> |
| <script>script.q</script> |
| <param>INPUT=/tmp/table</param> |
| <param>OUTPUT=/tmp/hive</param> |
| </hive> |
| <ok to="b"/> |
| <error to="c1"/> |
| </action> |
| |
| <action name="b"> |
| <distcp xmlns="uri:oozie:distcp-action:0.1"> |
| <job-tracker>blah</job-tracker> |
| <name-node>meh</name-node> |
| <prepare> |
| <delete path="/tmp2"/> |
| <mkdir path="/tmp2"/> |
| </prepare> |
| <configuration> |
| <property> |
| <name>a</name> |
| <value>A2</value> |
| </property> |
| <property> |
| <name>b</name> |
| <value>B</value> |
| </property> |
| </configuration> |
| <arg>/tmp/data.txt</arg> |
| <arg>/tmp2/data.txt</arg> |
| </distcp> |
| <ok to="d"/> |
| <error to="c1"/> |
| </action> |
| |
| <action name="c1"> |
| <email xmlns="uri:oozie:email-action:0.2"> |
| <to>foo@bar.com</to> |
| <subject>foo</subject> |
| <body>bar</body> |
| </email> |
| <ok to="c2"/> |
| <error to="c2"/> |
| </action> |
| |
| <kill name="c2"> |
| <message>fail</message> |
| </kill> |
| |
| <end name="d"/> |
| </workflow-app> |