install
一、安装azkaban
1、上传azkaban-solo-server.zip 包到一台spark主机的/app/azkaban下,并解压
二、修改mysql数据库的字符限制 (java.sql.SQLException: Index column size too large. The maximum column size is 767 bytes)
1、热修改:
set global innodb_file_format = BARRACUDA;
set global innodb_large_prefix = ON;
set global innodb_file_per_table = ON;
set global max_allowed_packet = 10_1024_1024*10;
2、永久修改(需要重启数据库生效,可暂时不重启):
innodb_file_format = BARRACUDA
innodb_large_prefix = ON
max_allowed_packet = 100M
三、mysql中创建azkaban数据库并创建相对应的用户并授权
CREATE DATABASE azkaban CHARACTER SET utf8mb4 COLLATE utf8mb4bin;
CREATE USER ‘azkaban’@’%’ IDENTIFIED BY ‘xxx’;
GRANT ALL privileges on ._ to ‘azkaban’@’%’;
flush privileges;
四、修改azkaban配置文件
1、vim /app/azkaban/azkaban-solo-server/conf/azkaban.properties
注释掉以下三个配置项
##database.type=h2
##h2.path=./h2
##h2.create.tables=true
新增以下七个配置项
database.type=mysql
mysql.port=3306
mysql.host=xxxxx
mysql.database=azkaban
mysql.user=azkaban
mysql.password=xxxxxx
mysql.numconnections=100
五、修改azkaban的sql建表脚本
1、cd /app/azkaban/azkaban-solo-server/sql
2、vim create.project_properties.sql
在第一个创建语句最后分号前添加 engine=innodb row_format=dynamic
六、启动azkaban
1、cd /app/azkaban/azkaban-solo-server
2、sh bin/start-solo.sh
七、登陆azkaban页面,根据下载的任务代码创建工程,上传下载的代码并设置好定时任务
验证:
浏览器输入:http://xxxIP:8081
账号/密码:azkaban/Azkaban*123qwe!