|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

 

posted on   yanqi_vip  阅读(9)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示