Alejandro,
We're running Oozie server 2.3.2-cdh3u4.
The shell action appears to be supported based on the documentation,
but when I run my workflow, I get the following error in the oozie
logs:
E0701: XML schema error, cvc-complex-type.2.4.c: The matching
wildcard is strict, but no declaration can be found for element
'shell'.
When I use xmlns="uri:oozie:workflow:0.3" I get the following error:
XException, org.apache.oozie.command.CommandException: E0701: XML
schema error, cvc-elt.1: Cannot find the declaration of element
'workflow-app'.
org.apache.oozie.command.CommandException: E0701: XML schema error,
cvc-elt.1: Cannot find the declaration of element 'workflow-app'.
Here is m workflow.xml:
<workflow-app xmlns="uri:oozie:workflow:0.2" name="dlx-mapping-processor-main">
<start to="shell-test"/>
<action name="shell-test">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<exec>pwd</exec>
<capture-output/>
</shell>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Node failed, error
message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>
</workflow-app>
On Thu, Jul 5, 2012 at 9:59 AM, Alejandro Abdelnur <[email protected]> wrote:
> Hi TIm,
>
> I think the Shell action would be better suited to run a phyton script. And
> keep in mind phyton and all the libs you need should be avail in all nodes
> in the cluster.
>
> Thanks
>
> Alejandro
>
> On Tue, Jul 3, 2012 at 11:09 PM, Tim Chan <[email protected]> wrote:
>
>> I would like to use Oozie to run a python script on a worker node.
>>
>> I've been looking at the documentation located here:
>>
>> https://github.com/yahoo/oozie/wiki/Oozie-WF-use-cases
>>
>> under the heading: Java-Main Action with Script support
>>
>> Is ReadErrorStream some custom class? It is not a part of the Java IO API.
>>
>> Is there updated documentation on running scripts (ruby, python, perl,
>> etc) using Oozie?
>>
>
>
>
> --
> Alejandro
--
Tim Chan // [email protected] // 213.784.2523