|NO.Z.00034|——————————|^^ 部署 ^^|——|Hadoop&azkaban.V06|——|azkaban.v06|azkaban.multiple-executor模式部署.v02|
一、配置Azkaban-exec-server
### --- linux123节点,上传exec安装包到/opt/yanqi/software
[root@linux123 ~]# cd /opt/yanqi/software/azkaban/
[root@linux123 azkaban]# ll
-rw-r--r-- 1 root root 15762323 Jul 22 2020 azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz
[root@linux123 azkaban]# tar -zxvf azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz -C /opt/yanqi/servers/azkaban/
### --- 修改azkaban-exec-server的配置文件
[root@linux123 ~]# cd /opt/yanqi/servers/azkaban/azkaban-exec-server-0.1.0-SNAPSHOT/
[root@linux123 azkaban-exec-server-0.1.0-SNAPSHOT]# vim conf/azkaban.properties
# Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=My Local Azkaban
azkaban.color=#FF3601
azkaban.default.servlet.path=/index
web.resource.dir=web/
default.timezone.id=Asia/Shanghai
# Azkaban UserManager class
user.manager.class=azkaban.user.XmlUserManager
user.manager.xml.file=conf/azkaban-users.xml
# Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
# Where the Azkaban web server is located
azkaban.webserver.url=https://linux122:8443
# Azkaban mysql settings by default. Users should configure their own usernameand password.
database.type=mysql
mysql.port=3306
mysql.host=linux123
mysql.database=azkaban
mysql.user=root
mysql.password=12345678
mysql.numconnections=100
# Azkaban Executor settings
executor.maxThreads=50
executor.port=12321
executor.flow.threads=30
### --- 分发exec-server到linux121节点
[root@linux123 ~]# cd /opt/yanqi/servers/
[root@linux123 servers]# scp -r azkaban linux121:$PWD
二、启动服务
### --- 先启动exec-server再启动web-server
~~~ # 在linux121和linux123上启动start-exec-server
[root@localhost ~]# cd /opt/yanqi/servers/azkaban/azkaban-exec-server-0.1.0-SNAPSHOT/
[root@localhostazkaban-exec-server-0.1.0-SNAPSHOT]# bin/start-exec.sh
~~~ # 在linux122上启动start-web-server
[root@linux122 ~]# cd /opt/yanqi/servers/azkaban/azkaban-web-server-0.1.0-SNAPSHOT/
[root@linux122 azkaban-web-server-0.1.0-SNAPSHOT]# bin/start-web.sh
### --- 查看启动的进程
[root@linux121 ~]# jps
9597 AzkabanExecutorServer
[root@linux123 ~]# jps
9855 AzkabanExecutorServer
[root@linux122 ~]# jps
9014 AzkabanWebServer
### --- 激活我们的exec-server:启动webServer之后进程失败消失,
~~~ 可通过安装包根目录下对应启动日志进行排查。
[root@linux122 ~]#ll /opt/yanqi/servers/azkaban/azkaban-web-server-0.1.0-SNAPSHOT/
-rw-r--r-- 1 root root 82629 Sep 3 12:30 webServerLog_2021-09-03+12:26:43.out
[root@linux122 azkaban-web-server-0.1.0-SNAPSHOT]# tail -100 webServerLog_2021-09-03+12\:26\:43.out
# ERROR [ExecutorManager] [Azkaban] No active executor found
### --- 需要手动激活executor
~~~ # 在linux121和linux123激活executor
[root@localhost ~]# cd /opt/yanqi/servers/azkaban/azkaban-exec-server-0.1.0-SNAPSHOT/
~~~ # 请求webserver的地址,进行激活,把激活结果打印出来即可
[root@localhost ~]# curl -G "linux121:$(<./executor.port)/executor?action=activate" && echo
{"status":"success"}
三、访问地址:https://linux122:8443 用户名:azkaban 密码:azkaban

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
分类:
bdv011-azkaban
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」