当前位置:网站首页>Azkaban安装部署
Azkaban安装部署
2022-07-05 02:41:00 【一个正在努力的菜鸡】
下载地址
http://azkaban.github.io/downloads.html
安装前准备
- 将jar放入创建的/usr/lcoal/azkabanjar目录

安装
1.解压azkaban-web-server-2.5.0.tar.gz、azkaban-executor-server-2.5.0.tar.gz、azkaban-sql-script-2.5.0.tar.gz到/user/local/azkaban
- tar -xvf azkaban-web-server-2.5.0.tar.gz -C /usr/local/azkaban/
- tar -xvf azkaban-executor-server-2.5.0.tar.gz -C /usr/local/azkaban/
- tar -xvf azkaban-sql-script-2.5.0.tar.gz -C /usr/local/azkaban/
2.对解压后的文件重新命名
- mv azkaban-web-2.5.0/ web
- mv azkaban-executor-2.5.0/ executor
3.进入mysql,创建azkaban数据库,并将解压的脚本导入到azkaban数据库
- mysql -uroot -p
- create database azkaban;
- use azkaban;
- source /usr/local/azkaban/azkaban-2.5.0/create-all-sql-2.5.0.sql
source后跟.sql文件,用于批量处理.sql文件中的sql语句
生成密钥库
1.生成keystore的密码及相应信息的密钥库
- cd /usr/local/azkaban
- keytool -keystore keystore -alias jetty -genkey -keyalg RSA
Keytool是java数据证书的管理工具,使用户能够管理自己的公/私钥对及相关证书
-keystore:指定密钥库的名称及位置(产生的各类信息将不在.keystore文件中)
-genkey:在用户主目录中创建一个默认文件".keystore"
-alias:对我们生成的.keystore 进行指认别名;如果没有默认是mykey
-keyalg:指定密钥的算法 RSA/DSA 默认是DSA
- 密钥库的密码至少必须6个字符,可以是纯数字或者字母或者数字和字母的组合等等,密钥库的密码最好和jetty的密钥相同,方便记忆
[root@node1 azkaban]# keytool -keystore keystore -alias jetty -genkey -keyalg RSA
输入密钥库口令:
再次输入新口令:
您的名字与姓氏是什么?
[Unknown]:
您的组织单位名称是什么?
[Unknown]:
您的组织名称是什么?
[Unknown]:
您所在的城市或区域名称是什么?
[Unknown]:
您所在的省/市/自治区名称是什么?
[Unknown]:
该单位的双字母国家/地区代码是什么?
[Unknown]:
CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown是否正确?
[否]: y
输入 <jetty> 的密钥口令
(如果和密钥库口令相同, 按回车):
再次输入新口令:
2.将keystore 拷贝到 azkaban web服务器根目录中
- mv keystore web/
时间同步配置 (如已经完成时间同步,则跳过此步骤)
替换Mysql驱动
- Azkaban2.5默认使用mysql5.1驱动,我这里是mysql8.0,所以要更换驱动
1.executor

2.web

Web服务器配置
1.azkaban.properties配置
- cd /usr/local/azkaban/web/conf
- vim azkaban.properties
#Azkaban Personalization Settings
#服务器UI名称,用于服务器上方显示的名字
azkaban.name=Test
#描述
azkaban.label=My Local Azkaban
#UI颜色
azkaban.color=#FF3601
azkaban.default.servlet.path=/index
#默认web server存放web文件的目录
web.resource.dir=/usr/local/azkaban/web/web/
#默认时区,已改为亚洲/上海 默认为美国
default.timezone.id=Asia/Shanghai
#Azkaban UserManager class
user.manager.class=azkaban.user.XmlUserManager
#用户权限管理默认类(绝对路径)
user.manager.xml.file=/usr/local/azkaban/web/conf/azkaban-users.xml
#Loader for projects
#global配置文件所在位置(绝对路径)
executor.global.properties=/usr/local/azkaban/executor/conf/global.properties
azkaban.project.dir=projects
#数据库类型
database.type=mysql
#端口号
mysql.port=3306
#数据库连接IP
mysql.host=node3
#数据库实例名
mysql.database=azkaban?useSSL=false&serverTimezone=UTC&characterEncoding=utf-8
#数据库用户名
mysql.user=root
#数据库密码
mysql.password=a
#最大连接数
mysql.numconnections=100
# Velocity dev mode
velocity.dev.mode=false
# Azkaban Jetty server properties.
# Jetty服务器属性.
#最大线程数
jetty.maxThreads=25
#Jetty SSL端口
jetty.ssl.port=8443
#Jetty端口
jetty.port=8081
#SSL文件名(绝对路径)
jetty.keystore=/usr/local/azkaban/web/keystore
#SSL文件密码
jetty.password=xbzz7789
#Jetty主密码与keystore文件相同
jetty.keypassword=xbzz7789
#SSL文件名(绝对路径)
jetty.truststore=/usr/local/azkaban/web/keystore
#SSL文件密码
jetty.trustpassword=xbzz7789
# Azkaban Executor settings
executor.port=12321
# mail settings
mail.sender=
mail.host=
job.failure.email=
job.success.email=
lockdown.create.projects=false
cache.directory=cache
2.azkaban-users.xml配置
- 增加管理员用户,配置两种角色 admin, metrics
- cd /usr/local/azkaban/web/conf
- vim azkaban-users.xml
<azkaban-users>
<user username="azkaban" password="azkaban" roles="admin" groups="azkaban" />
<user username="metrics" password="metrics" roles="metrics"/>
<user username="admin" password="admin" roles="admin,metrics" />
<role name="admin" permissions="ADMIN" />
<role name="metrics" permissions="METRICS"/>
</azkaban-users>
执行服务器executor配置
1.azkaban.properties配置
- cd /usr/local/azkaban/executor/conf
- vim azkaban.properties
#Azkaban
#时区
default.timezone.id=Asia/Shanghai
# Azkaban JobTypes Plugins
#jobtype 插件所在位置
azkaban.jobtype.plugin.dir=plugins/jobtypes
#Loader for projects
executor.global.properties=/usr/local/azkaban/executor/conf/global.properties
azkaban.project.dir=projects
database.type=mysql
mysql.port=3306
mysql.host=node3
mysql.database=azkaban?useSSL=false&serverTimezone=UTC&characterEncoding=utf-8
mysql.user=root
mysql.password=a
mysql.numconnections=100
# Azkaban Executor settings
#最大线程数
executor.maxThreads=50
#端口号(如修改,请与web服务中一致)
executor.port=12321
#线程数
executor.flow.threads=30
启动服务
1.启动executor服务器
- cd /usr/local/azkaban/executor/bin
- ./azkaban-executor-start.sh
2.启动web服务器
- 先执行executor,再执行web,避免Web Server会因为找不到执行器启动失败
- cd /usr/local/azkaban/web/bin
- ./azkaban-web-start.sh
3.查看启动情况

访问Web


边栏推荐
- When to catch an exception and when to throw an exception- When to catch the Exception vs When to throw the Exceptions?
- GFS distributed file system
- Start the remedial work. Print the contents of the array using the pointer
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- 【LeetCode】501. Mode in binary search tree (2 wrong questions)
- spoon插入更新oracle数据库,插了一部分提示报错Assertion botch: negative time
- Talk about the things that must be paid attention to when interviewing programmers
- Pytest (5) - assertion
- "C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
- Visual studio 2019 set transparent background (fool teaching)
猜你喜欢

Learn game model 3D characters, come out to find a job?

Introduce reflow & repaint, and how to optimize it?

Design of kindergarten real-time monitoring and control system

Unpool(nn.MaxUnpool2d)

Acwing第 58 场周赛【完结】

Video display and hiding of imitation tudou.com

2021 Li Hongyi machine learning (2): pytorch

openresty ngx_lua執行階段
![Acwing game 58 [End]](/img/16/c55e0a7aedc354f1c739637ed13a6b.png)
Acwing game 58 [End]

Application and Optimization Practice of redis in vivo push platform
随机推荐
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Grpc message sending of vertx
Returns the lowest common ancestor of two nodes in a binary tree
Three properties that a good homomorphic encryption should satisfy
Design and implementation of high availability website architecture
CAM Pytorch
LeetCode --- 1071. Great common divisor of strings problem solving Report
打破信息茧房-我主动获取信息的方法 -#3
问题解决:AttributeError: ‘NoneType‘ object has no attribute ‘append‘
Moco V2 literature research [self supervised learning]
Good documentation
Yolov5 model training and detection
Can you really learn 3DMAX modeling by self-study?
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
Leetcode takes out the least number of magic beans
Introduce reflow & repaint, and how to optimize it?
[Yu Yue education] National Open University spring 2019 0505-22t basic nursing reference questions
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
Acwing game 58 [End]
Summary and practice of knowledge map construction technology