Database Reference
In-Depth Information
Running an Oozie Workflow
To make the Oozie task invocation simpler, I define the OOZIE_URL variable. This means that when I want to invoke
an Oozie job, I have simply invoke the oozie command; I do not have to specify the whole Oozie URL. For the Oozie
example, this is as follows:
[hadoop@hc1nn fuel]$ export OOZIE_URL=http://localhost:11000/oozie
The oozie command is then used with a job parameter and the load.job.properties file. The -submit
parameter is used to submit the file, and this returns the Oozie job number 0000000-140706152445409-oozie-oozi-W:
oozie job -config ./load.job.properties -submit
job: 0000000-140706152445409-oozie-oozi-W
The workflow can now be started using this Oozie job number. I issue the oozie command with the parameters
job and -start , followed by the job number:
oozie job -start 0000000-140706152445409-oozie-oozi-W
I can pause and restart the job with the -suspend and -resume oozie command options. The help option passed
to the oozie command gives me a full list of the possible options.
I now access the Oozie console (shown in Figure 5-5 ) by using the OOZIE_URL value I specified previously.
Figure 5-5. Oozie console job list
 
Search WWH ::




Custom Search