Welcome to the Cloudera Community

Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Who agreed with this topic

Execute Shell script through oozie job in all node

avatar
Contributor

I tried to execute shell script through an oozie job , It seems it just executed in jobTracker host not in other nodes. I am expecting the script to be executed in all the nodes. did I required any other specific configuration . Or I missed anything here.

 

workflow.xml

------------------------------

 

<workflow-app name="script_oozie_job" xmlns="uri:oozie:workflow:0.3">
<start to='Test' />
<action name="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>CopyFiles.sh</exec>
<argument>${argument1}</argument>
<file>hdfs://nameNode-host:8020/user/oozie/script/script_oozie_job/CopyFiles.sh#CopyFiles.sh</file>
</shell>
<ok to="end"/>
<error to="fail"/>
</action>
<kill name="fail">
<message>Script failed</message>
</kill>
<end name='end' />

 

 

job.properties

---------------------------------

 

nameNode=hdfs://nameNode-host:8020
jobTracker=jobTacker-host:8032
queueName=default
argument1=""
oozie.wf.application.path=hdfs://nameNode-host:8020/user/oozie/script/script_oozie_job

 

 

 

Regards

-Khirod

Who agreed with this topic