- 在原来安装(web/executor在不同进程)的基础上,在web和executor的azkaban.properties配置文件中加入:
executor.port=12321 #(此配置项原来就有)
azkaban.use.multiple.executors=true
azkaban.executorselector.filters=StaticRemainingFlowSize,MinimumFreeMemory,CpuStatus
azkaban.executorselector.comparator.NumberOfAssignedFlowComparator=1
azkaban.executorselector.comparator.Memory=1
azkaban.executorselector.comparator.LastDispatched=1
azkaban.executorselector.comparator.CpuUsage=1
- 将executor安装跑拷贝到为azkaban 准备的executor服务器上,并重启,重启后在该服务器上激活一下该executor
curl -G "10.111.11.142:12321/executor?action=activate" && echo
curl -G "10.111.11.143:12321/executor?action=activate" && echo
如果没什么问题会打印:
{"status":"success"}
- 登录azkaban数据库看看
select * from executors;

4. 说明已经激活
本文介绍如何在Azkaban中配置并激活多个Executor,包括修改azkaban.properties文件,设置executor.port等参数,使用curl命令激活Executor,以及检查数据库确认激活状态。
410

被折叠的 条评论
为什么被折叠?



