一,拉取源码构建

git clone https://github.com/azkaban/azkaban.git
cd azkaban; ./gradlew build installDist

二,创建数据库,将sql文件导入数据库

CREATE DATABASE azkaban;
use azkaban;
source /home/azkaban/azkaban-db/build/sql/create-all-sql-3.82.0-2-gd8a86ee.sql;

三,修改数据库数据包大小

vi  /etc/my.cnf
#在mysqld之后添加
max_allowed_packet=1024M
#重启
sudo /sbin/service mysqld restart

四,修改azkaban-exec-server配置并启动

vi /home/azkaban/azkaban-exec-server/build/install/azkaban-exec-server/conf/azkaban.properties
#时区
default.timezone.id=Asia/Shanghai
# 改为自己IP
azkaban.webserver.url=http://${azkaban.web.ip}:8081
# 修改链接和账号密码
database.type=mysql
mysql.port=3306
mysql.host=${mysql.host}
mysql.database=azkaban
mysql.user=${username}
mysql.password=${password} #修改启动端口

# Azkaban Executor settings
 executor.maxThreads=50
 executor.flow.threads=30
 executor.port=12341

修改启动脚本:

vi /home/azkaban/azkaban-exec-server/build/install/azkaban-exec-server/bin/start-exec.sh
#文件后面添加激活服务
sleep 5s
curl -G "localhost:12341/executor?action=activate" && echo

启动:

cd azkaban-exec-server/build/install/azkaban-exec-server
./bin/start-exec.sh

五,修改azkaban-web-server配置并启动

vi /home/azkaban/azkaban-web-server/build/install/azkaban-web-server/conf/azkaban.properties
# 修改链接和账号密码
database.type=mysql
mysql.port=3306
mysql.host=${mysql.host}
mysql.database=azkaban
mysql.user=${username}
mysql.password=${password}

添加用户:

vi  /home/azkaban/azkaban-web-server/build/install/azkaban-web-server/conf
<azkaban-users>
<user groups="azkaban" password="azkaban" roles="admin" username="azkaban"/>
<user password="metrics" roles="metrics" username="metrics"/>
<user groups="admin" password="hadoop" roles="admin" username="hadoop"/> #新加这一行,添加hadoop用户
<role name="admin" permissions="ADMIN"/>
<role name="metrics" permissions="METRICS"/>
</azkaban-users>

启动:

cd azkaban-web-server/build/install/azkaban-web-server
./bin/start-web.sh

登陆:

默认端口 :http://localhost:8081/

默认账号密码:azkaban

修改用户:https://azkaban.readthedocs.io/en/latest/userManager.html

最简单之安装azkaban-LMLPHP

PS:扩展最简单

#下载源码
git clone https://github.com/azkaban/azkaban.git
#生成安装包
./gradlew build
#查看安装包
ls */build/distributions/*
#拷贝web和executor
scp */build/distributions/azkaban-exec-server*.tar.gz /home/
scp */build/distributions/azkaban-web-server*.tar.gz /home/
scp */build/distributions/azkaban-db*.tar.gz /home/ #这里里面有create-all-sql-0.1.0-SNAPSHOT.sql
#后面其他配置如上
05-24 07:14