In this section, we will write the scheduled job for running out the MapReduce Workflow. Let's start with a simple Coordinator declaration. The code for the following example is present in the folder BOOK_CODE_HOME/learn_oozie/ch04/mapreduce_coordinat
or/v1
.
The Coordinator definition present in the coordinator.xml
is as follows:
<coordinator-app name="My_First_Coordinator" frequency="${frequency}" start="${start_date}" end="${end_date}" timezone="Australia/Sydney" xmlns="uri:oozie:coordinator:0.4"> <action> <workflow> <app-path>${wf_application_path}</app-path> </workflow> </action> </coordinator-app>
The Coordinator definition is simple. It says, "Run the Workflow wf_application_path
with the given arguments start_date
, end_date
, and fre
quency
."