You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by rk...@apache.org on 2013/02/04 19:02:24 UTC
svn commit: r1442243 - in /oozie/branches/branch-3.3:
examples/src/main/apps/shell/ examples/src/main/apps/shell/job.properties
examples/src/main/apps/shell/workflow.xml release-log.txt
Author: rkanter
Date: Mon Feb 4 18:02:24 2013
New Revision: 1442243
URL: http://svn.apache.org/viewvc?rev=1442243&view=rev
Log:
OOZIE-1062 Create a shell example
Added:
oozie/branches/branch-3.3/examples/src/main/apps/shell/
oozie/branches/branch-3.3/examples/src/main/apps/shell/job.properties
oozie/branches/branch-3.3/examples/src/main/apps/shell/workflow.xml
Modified:
oozie/branches/branch-3.3/release-log.txt
Added: oozie/branches/branch-3.3/examples/src/main/apps/shell/job.properties
URL: http://svn.apache.org/viewvc/oozie/branches/branch-3.3/examples/src/main/apps/shell/job.properties?rev=1442243&view=auto
==============================================================================
--- oozie/branches/branch-3.3/examples/src/main/apps/shell/job.properties (added)
+++ oozie/branches/branch-3.3/examples/src/main/apps/shell/job.properties Mon Feb 4 18:02:24 2013
@@ -0,0 +1,24 @@
+#
+# 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.
+#
+
+nameNode=hdfs://localhost:8020
+jobTracker=localhost:8021
+queueName=default
+examplesRoot=examples
+
+oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/shell
Added: oozie/branches/branch-3.3/examples/src/main/apps/shell/workflow.xml
URL: http://svn.apache.org/viewvc/oozie/branches/branch-3.3/examples/src/main/apps/shell/workflow.xml?rev=1442243&view=auto
==============================================================================
--- oozie/branches/branch-3.3/examples/src/main/apps/shell/workflow.xml (added)
+++ oozie/branches/branch-3.3/examples/src/main/apps/shell/workflow.xml Mon Feb 4 18:02:24 2013
@@ -0,0 +1,52 @@
+<!--
+ 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="shell-wf">
+ <start to="shell-node"/>
+ <action name="shell-node">
+ <shell xmlns="uri:oozie:shell-action:0.2">
+ <job-tracker>${jobTracker}</job-tracker>
+ <name-node>${nameNode}</name-node>
+ <configuration>
+ <property>
+ <name>mapred.job.queue.name</name>
+ <value>${queueName}</value>
+ </property>
+ </configuration>
+ <exec>echo</exec>
+ <argument>my_output=Hello Oozie</argument>
+ <capture-output/>
+ </shell>
+ <ok to="check-output"/>
+ <error to="fail"/>
+ </action>
+ <decision name="check-output">
+ <switch>
+ <case to="end">
+ ${wf:actionData('shell-node')['my_output'] eq 'Hello Oozie'}
+ </case>
+ <default to="fail-output"/>
+ </switch>
+ </decision>
+ <kill name="fail">
+ <message>Shell action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+ </kill>
+ <kill name="fail-output">
+ <message>Incorrect output, expected [Hello Oozie] but was [${wf:actionData('shell-node')['my_output']}]</message>
+ </kill>
+ <end name="end"/>
+</workflow-app>
Modified: oozie/branches/branch-3.3/release-log.txt
URL: http://svn.apache.org/viewvc/oozie/branches/branch-3.3/release-log.txt?rev=1442243&r1=1442242&r2=1442243&view=diff
==============================================================================
--- oozie/branches/branch-3.3/release-log.txt (original)
+++ oozie/branches/branch-3.3/release-log.txt Mon Feb 4 18:02:24 2013
@@ -1,5 +1,6 @@
-- Oozie 3.3.2 (unreleased)
+OOZIE-1062 Create a shell example
OOZIE-1034 Allow disabling forkjoin validation just for a specific workflow
OOZIE-1072 Oozie Coordinator Doc error in Synchronous datasets
OOZIE-1028 Add EL function to allow date ranges to be used for dataset ranges (rkanter via tucu)