1. Create a project on azkaban

After you log in to Azkaban, there is a Create Project button in the upper right corner. Click the Create Project button and enter the Project information.



2. Upload the project file

Previous experience, here should upload a.zip compressed file, and you this.zip compressed file do not have a file directory, directly is the file.





The compressed file contains two files, one is the run.sh script and the other is the.job file.

The script file stores authentication information and file directories

Keytab /usr/hddp /2.6.2.14-5/spark2/bin/spark-submit..... -sparker.job.file.path HDFS :// GDMP /projects/ to be scheduled. SQLCopy the code

So in the job file, let me write this

type=command
command=sh ./run.sh
Copy the code

3. Run the tests



After the test is successful, you can configure the schedule date.

4. Set the scheduling date



Based on the previous configuration, you can view the next 10 execution times. You can see whether the execution time is by day. Each day is executed at 0 o ‘clock.



Pay attention to the wechat public account “Data Analyst Notes”, learn and progress together!