This section describes how to submit a Loader job using the Oozie client.
You are advised to download the latest client.
source /opt/client/bigdata_env
For example, the oozieuser user is authenticated using the following command:
kinit oozieuser
cd /opt/client/Oozie/oozie-client-*/examples/apps/sqoop/
Table 1 lists the files that you need to pay attention to in the directory.
vi job.properties
Perform the following modifications:
Change the value of userName to the name of the human-machine user who submits the job, for example, userName=oozieuser.
vi workflow.xml
Perform the following modifications:
Change the value of command to the ID of the Loader job to be scheduled, for example, 1.
Upload the workflow.xml file to the HDFS path in the job.properties file.
hdfs dfs -put -f workflow.xml /user/userName/examples/apps/sqoop
oozie job -oozie https://Host name of the Oozie role:21003/oozie/ -config job.properties -run
-oozie URL of the Oozie server that executes a job
-config Workflow property file
-run Executing a workflow
Log in to the Oozie web UI at https://IP address of the Oozie role:21003/oozie as user oozieuser.
On the Oozie web UI, you can view the submitted workflow information based on the job ID in the table on the page.