Skip to content

Instantly share code, notes, and snippets.

@tmusabbir
Last active December 25, 2015 18:19
Show Gist options
  • Save tmusabbir/7019407 to your computer and use it in GitHub Desktop.
Save tmusabbir/7019407 to your computer and use it in GitHub Desktop.
A basic Oozie coordinator job
A basic Oozie coordinator job
[ambari_qa@ip-10-0-0-91 ~]$ oozie job -oozie http://ip-10-0-0-91:11000/oozie -config job.properties -run
[ambari_qa@ip-10-0-0-91 coordinator]$ hadoop fs -lsr /user/ambari_qa/coordinator
-rw------- 3 ambari_qa hdfs 278 2013-05-13 20:31 /user/ambari_qa/coordinator/coordinator.xml
[ambari_qa@ip-10-0-0-91 coordinator]$ oozie job -oozie http://ip-10-0-0-91:11000/oozie -run -config coordinator.properties
nameNode=hdfs://ip-10-0-0-92:8020
jobTracker=ip-10-0-0-93:50300
queueName=default
EXEC=script.sh
oozie.use.system.libpath=true
oozie.libpath=/user/oozie/share/lib
oozie.coord.application.path=${nameNode}/user/${user.name}/coordinator
workflowPath=${nameNode}/user/${user.name}/shell-wf
startTime=2013-05-14T02:25Z
endTime=2013-05-14T02:45Z
frequency=30
timezone=UTC
<coordinator-app end="${endTime}" frequency="${frequency}" name="Shell_App" start="${startTime}" timezone="${timezone}" xmlns="uri:oozie:coordinator:0.1">
<action>
<workflow>
<app-path>${workflowPath}</app-path>
</workflow>
</action>
</coordinator-app>
[ambari_qa@ip-10-0-0-91 ~]$ hadoop fs -lsr /user/ambari_qa/shell-wf
-rw------- 3 ambari_qa hdfs 1183 2013-05-10 21:45 /user/ambari_qa/shell-wf/script.sh
-rw------- 3 ambari_qa hdfs 7181 2013-05-14 04:35 /user/ambari_qa/shell-wf/workflow.xml
nameNode=hdfs://ip-10-0-0-92:8020
jobTracker=ip-10-0-0-93:50300
queueName=default
EXEC=script.sh
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/${wfeRoot}/shell-wf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment