1.打包:./gradlew clean build
2.修改配置文件:位置在conf下面的azkaban.properties
3.部署:主要部署azkaban-web-server(页面操作),azkaban-exec-server(具体的exec),部署时注意要先部署azkaban-exec-server,部署成功之后需要修改数据库中exectors表中的对应实例active字段为1激活该exectors,否则会报:
azkaban.executor.ExecutorManagerException: No active executors found 错误
这里要注意的是修改完该字段的值的时候并没有结束,此时执行job会报错
[Azkaban] executor became inactive before setting up the flow
这是因为光激活了数据库中的状态,但是内存中的状态还是未激活,所以需要重启或者调用这个链接
curl http://localhost:port/executor?action=activate
注意事项:
使用虚拟机进行部署时可能无法正常执行任务,原因在于原来的配置文件中存在三个filter
StaticRemainingFlowSize,MinimumFreeMemory,CpuStatus这三个filter分别对应的时所剩任务数,最小空闲内存(不得低于6G),cpu状态其中内存的要求为
This filter will filter out any executors that has the remaining memory below 6G
如果想要在小型机器上部署需要将filters中配置得MinimumFreeMemory去掉。