azkaban的用户配置和重启 笔记
假设azkaban安装在:/usr/local/azkaban/
配置用户:编辑/usr/local/azkaban/azkaban-web-server/conf/azkaban-user.xml
权限列表:
ADMIN Grants all access to everything in Azkaban.
READ Gives users read only access to every project and their logs
WRITE Allows users to upload files, change job properties or remove any project
EXECUTE Allows users to trigger the execution of any flow
SCHEDULE Users can add or remove schedules for any flows
CREATEPROJECTS Allows users to create new projects if project creation is locked down
配置示例:
<azkaban-users>
<user username="admin" password="admin" roles="admin" groups="admin" />
<user username="zhangsan" password="zhangsan" groups="group_user" />
<user username="lisi" password="lisi" groups="group_user" />
<user username="metrics" password="metrics" roles="metrics,execute"/>
<user username="azkaban" password="azkaban" groups="group_inspector"/>
<group name="group_user" roles="user" />
<group name="group_inspector" roles="inspector" />
<role name="admin" permissions="ADMIN" />
<role name="metrics" permissions="METRICS"/>
<role name="user" permissions="READ,WRITE,EXECUTE,SCHEDULE,CREATEPROJECTS"/>
<role name="inspector" permissions="READ"/>
<role name="write" permissions="WRITE"/>
<role name="execute" permissions="EXECUTE"/>
<role name="schedule" permissions="SCHEDULE"/>
<role name="createprojects" permissions="CREATEPROJECTS"/>
</azkaban-users>
roles, permissions 都能添加多个,用逗号分割。
重启:
azkaban分为两组进程:exec和web
改完 azkaban-user.xml 文件
只要重启web进程,先用ps 和 kill杀掉已存在的进程。然后重启:
cd /usr/local/azkaban/azkaban-web-server
bin/start-web.sh
附注一下重启exec的办法:
cd /usr/local/azkaban/azkaban-exec-server
bin/start-exec.sh
参考链接:https://blog.csdn.net/zlx510tsde/article/details/52287931