This is a azkaban tools mainly used for execute all azkaban project, sync scheduler or others.
azkaban version: 3.90
how to work: access azkaban interface. Refer: azkaban API documentation
make show_cron
make sync_cron
make set_cron
make reset_cron
make clean_cron
make kill
make run
# default: readonly(without schedule)
make set_perm
# writeonly(without schedule)
make set_perm_writeonly
# read and schedule(with execute and schedule)
make set_perm_readschedule
# read, write, schedule and execute(no admin)
make set_perm_readwrite
# clean user's permission
make delete_perm
All configuration is in env.sh
group | configuration | usage | example |
---|---|---|---|
env | search_env_name | config and data search from this env , usually test env | test |
exec_env_name | execute env name, usually pre env or produce env | produce | |
${env_name}_azkaban_address | the azkaban address in specify env, eg: test_azkaban_address | localhost:18888 | |
${env_name}_azkaban_user | the azkaban login username in specify env, eg: test_azkaban_user | admin | |
${env_name}_azkaban_password | the azkaban login password in specify env, eg: test_azkaban_password | admin123 | |
project | execute_project_name_arr | batch set project permission, the project name list | "stg dw" |
execute_user_name | batch set project permission, the user to set | hive | |
task | search_project_name | start project name, eg: sync crontab, the origin project name | stg |
target_project_name | execute project name, eg: sync crontab, the target project name | stg | |
fix_schedule_cron | set crontab task: if you need set all project flow to a specific crontab, please use this param | "0 0 18 * * ?" | |
execute_block_flow_names | run task: block flow name | "(not_execute_task1|not_execute_task2)" | |
execute_allow_flow_names | run task: to execute task | "(to_execute_task1|to_execute_task2)" | |
flow | flow_name_allowlist | set cron allow flow name list | "(to_set_cron_flow1|to_set_cron_flow2)" |