下载并编译文件参考官网:
Installing the Solo Server
Follow these steps to get started.
- Clone the repo: run
git clone https://github.com/azkaban/azkaban.git
- Build Azkaban and create an installation: run
cd azkaban; ./gradlew build installDist
到这一步这里编译完成就OK了,如果在编译的过程中出现错误首先检测网络是否畅通,还不行的话尝试跳过检测(-x 的意思是跳过检测,博主就是出了一些检测的问题但是不知道为什么发生的,直接跳过也可以正常使用...怀疑是JDK版本问题)
./gradlew build installDist -x test
配置MySql:
mysql -uroot -p你的密码
CREATE DATABASE azkaban;
# Example database creation command. The user name doesn't need to be 'azkaban'
mysql> CREATE USER 'azkaban'@'%' IDENTIFIED BY 'password';
# 授予权限
# Replace db, username with the ones created by the previous steps.
mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON azkaban.* to 'azkaban'@'%' WITH GRANT OPTION;
mysql>flush privileges;
service mysql restart
安装azkaban的表(必须要先编译好文件):
use azkaban;
source /root/azkaban-3.81.0/azkaban-db/build/install/azkaban-db/crea