azkaban 安装学习记录

azkaban 安装

[root@gree139 kb15tmp]# cd /opt/install/
azkaban-db-3.84.4.tar.gz
azkaban-exec-server-3.84.4.tar.gz
azkaban-web-server-3.84.4.tar.gz

[root@gree139 install]# mkdir -p /opt/soft/azkaba
[root@gree139 install]# tar -zxf azkaban-db-3.84.4.tar.gz -C /opt/soft/azkaba/
[root@gree139 install]# tar -zxf azkaban-exec-server-3.84.4.tar.gz -C /opt/soft/azkaba/
[root@gree139 install]# tar -zxf azkaban-web-server-3.84.4.tar.gz -C /opt/soft/azkaba/

[root@gree139 azkaba]# mv azkaban-db-0.1.0-SNAPSHOT/ azkaban-db
[root@gree139 azkaba]# mv azkaban-exec-server-0.1.0-SNAPSHOT/ azkaban-exec
[root@gree139 azkaba]# mv azkaban-web-server-0.1.0-SNAPSHOT/ azkaban-web
[root@gree139 azkaba]# ls
azkaban-db  azkaban-exec  azkaban-web

// azkaba 需要 mysql支持
[root@gree139 azkaba]# mysql -uroot -p

mysql> create database azkaban;

mysql> set global validate_password_length=4;
Query OK, 0 rows affected (0.00 sec)

mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)

mysql> create user 'azkaban'@'%' identified by 'azkaban';
Query OK, 0 rows affected (0.00 sec)

mysql> grant select,insert,update,delete on azkaban.* to 'azkaban'@'%' with grant option;

mysql> use azkaban;
Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> source /opt/soft/azkaba/azkaban-db/create-all-sql-0.1.0-SNAPSHOT.sql

mysql> show tables;
+-----------------------------+
| Tables_in_azkaban           |
+-----------------------------+
| QRTZ_BLOB_TRIGGERS          |
| QRTZ_CALENDARS              |
| QRTZ_CRON_TRIGGERS          |
| QRTZ_FIRED_TRIGGERS         |
| QRTZ_JOB_DETAILS            |
| QRTZ_LOCKS                  |
| QRTZ_PAUSED_TRIGGER_GRPS    |
| QRTZ_SCHEDULER_STATE        |
| QRTZ_SIMPLE_TRIGGERS        |
| QRTZ_SIMPROP_TRIGGERS       |
| QRTZ_TRIGGERS               |
| active_executing_flows      |
| active_sla                  |

[root@gree139 azkaba]# vi /etc/my.cnf
14 max_allowed_packet=1024M

// 重启mysql服务
[root@gree139 azkaba]# systemctl restart mysqld
[root@gree139 azkaba]# systemctl status mysqld

// mysql设置完成后,继续设置azkaban
[root@gree139 conf]# pwd
/opt/soft/azkaba/azkaban-exec/conf

[root@gree139 conf]# vi ./azkaban.properties
7 default.timezone.id=Asia/Shanghai
21 azkaban.webserver.url=http://192.168.153.139:8081
43 mysql.port=3306
44 mysql.host=192.168.153.139
45 mysql.database=azkaban
46 mysql.user=azkaban
47 mysql.password=azkaban
52 executor.port=12321

[root@gree139 jobtypes]# pwd
/opt/soft/azkaba/azkaban-exec/plugins/jobtypes
[root@gree139 jobtypes]# vi ./commonprivate.properties 

# set execute-as-user
execute.as.user=false

azkaban.native.lib=false

// 启动azkaban execServer
[root@gree139 azkaban-exec]# pwd
/opt/soft/azkaba/azkaban-exec
[root@gree139 azkaban-exec]# ./bin/start-exec.sh 

[root@gree139 azkaban-exec]# jps
58875 AzkabanExecutorServer

// 查看并启动executerServer
[root@gree139 azkaba]# mysql -uazkaban -p
Enter password: 


mysql> use azkaban;
mysql> select * from executors;
+----+---------+-------+--------+
| id | host    | port  | active |
+----+---------+-------+--------+
|  1 | gree139 | 12321 |      0 |
+----+---------+-------+--------+
1 row in set (0.00 sec)

[root@gree139 azkaban-exec]# curl -G "gree139:12321/executor?action=activate" && echo
{"status":"success"}

mysql> select * from executors;
+----+---------+-------+--------+
| id | host    | port  | active |
+----+---------+-------+--------+
|  1 | gree139 | 12321 |      1 |
+----+---------+-------+--------+
1 row in set (0.00 sec)

// 配置azkaban-web
[root@gree139 azkaban-exec]# cd ../azkaban-web/
[root@gree139 conf]# pwd
/opt/soft/azkaba/azkaban-web/conf
[root@gree139 conf]# vi ./azkaban.properties
7 default.timezone.id=Asia/Shanghai
40 mysql.port=3306
41 mysql.host=192.168.153.139
42 mysql.database=azkaban
43 mysql.user=azkaban
44 mysql.password=azkaban
49 azkaban.executorselector.filters=StaticRemainingFlowSize,CpuStatus

[root@gree139 conf]# vi ./azkaban-users.xml
4   <user password="123456" roles="admin" username="kb15"/>

// 启动azkaban-web服务
[root@gree139 azkaban-web]# pwd
/opt/soft/azkaba/azkaban-web

[root@gree139 azkaban-web]# ./bin/start-web.sh
[root@gree139 azkaban-web]# jps
59143 AzkabanWebServer

打开web界面 地址:8081

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值