当前位置:网站首页>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
边栏推荐
- Design and implementation of community hospital information system
- Pytest (4) - test case execution sequence
- [daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
- Pytorch register_ Hook (operate on gradient grad)
- RichView TRVUnits 图像显示单位
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- [illumination du destin - 38]: Ghost Valley - chapitre 5 Flying clamp - one of the Warnings: There is a kind of killing called "hold Kill"
- Design and implementation of kindergarten management system
- 使用druid连接MySQL数据库报类型错误
- The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
猜你喜欢
openresty ngx_lua执行阶段
Design of kindergarten real-time monitoring and control system
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
Introduce reflow & repaint, and how to optimize it?
[download white paper] does your customer relationship management (CRM) really "manage" customers?
【LeetCode】111. Minimum depth of binary tree (2 brushes of wrong questions)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Official announcement! The third cloud native programming challenge is officially launched!
Grub 2.12 will be released this year to continue to improve boot security
随机推荐
Last words record
Subject 3 how to turn on the high beam diagram? Is the high beam of section 3 up or down
Single line function*
openresty ngx_lua执行阶段
低度酒赛道进入洗牌期,新品牌如何破局三大难题?
Blue bridge - maximum common divisor and minimum common multiple
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
GFS distributed file system
Grub 2.12 will be released this year to continue to improve boot security
The phenomenology of crypto world: Pioneer entropy
Design and implementation of high availability website architecture
Introduce reflow & repaint, and how to optimize it?
使用druid連接MySQL數據庫報類型錯誤
Pytorch register_ Hook (operate on gradient grad)
[机缘参悟-38]:鬼谷子-第五飞箝篇 - 警示之一:有一种杀称为“捧杀”
Elk log analysis system
Icu4c 70 source code download and compilation (win10, vs2022)
Erreur de type de datagramme MySQL en utilisant Druid
Data guard -- theoretical explanation (III)
Three properties that a good homomorphic encryption should satisfy