当前位置:网站首页>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
边栏推荐
- Matrixone 0.2.0 is released, and the fastest SQL computing engine is coming
- Security level
- When to catch an exception and when to throw an exception- When to catch the Exception vs When to throw the Exceptions?
- Zabbix
- Introduce reflow & repaint, and how to optimize it?
- [illumination du destin - 38]: Ghost Valley - chapitre 5 Flying clamp - one of the Warnings: There is a kind of killing called "hold Kill"
- Kotlin - coroutine
- [技术发展-26]:新型信息与通信网络的数据安全
- Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
- D3js notes
猜你喜欢
Three properties that a good homomorphic encryption should satisfy
2021 Li Hongyi machine learning (3): what if neural network training fails
Openresty ngx Lua Execution stage
Yolov5 model training and detection
[technology development-26]: data security of new information and communication networks
A label making navigation bar
Tucson will lose more than $400million in the next year
【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)
Action News
Elfk deployment
随机推荐
Acwing game 58 [End]
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
Redis distributed lock, lock code logic
The most powerful new household god card of Bank of communications. Apply to earn 2100 yuan. Hurry up if you haven't applied!
Master Fur
GFS分布式文件系统
[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit
数据库和充值都没有了
openresty ngx_lua变量操作
PHP cli getting input from user and then dumping into variable possible?
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
ELFK部署
Which common ports should the server open
Design of kindergarten real-time monitoring and control system
8. Commodity management - commodity classification
Openresty ngx Lua Execution stage
Avoid material "minefields"! Play with super high conversion rate
The database and recharge are gone
d3js小记
GFS distributed file system