11°

azkaban环境搭建

 下载源码:git clone https://github.com/azkaban/azkaban.git
 编译源码 ./gradlew distTar
 


cp /root/soft/azkaban/azkaban-*/build/distributions/*.tar.gz  /root/soft/azkabatt
[root@localhost azkabatt]# cd /root/soft/azkabatt
[root@localhost azkabatt]# tar zxvf azkaban-exec-server-3.81.0-1-g304593d.tar.gz
[root@localhost azkabatt]# tar zxvf azkaban-web-server-3.81.0-1-g304593d.tar.gz
[root@localhost azkabatt]# tar zxvf azkaban-db-3.81.0-1-g304593d.tar.gz
导入表到Mysql数据库
ariaDB [azkaban]> source create-all-sql-3.81.0-1-g304593d.sql

[root@localhost azkaban-db-3.81.0-1-g304593d]# mkdir /root/keystore
[root@localhost azkaban-db-3.81.0-1-g304593d]# cd /root/keystore
生成keystore文件
keytool -keystore keystore -alias jetty -genkey -keyalg RSA
[root@localhost azkaban-exec-server-3.81.0-1-g304593d]# vi /root/soft/azkabatt/azkaban-exec-server-3.81.0-1-g304593d/conf/azkaban.properties 
default.timezone.id=Asia/Shanghai
(sql文件为:/root/azkaban/azkaban-db/build/sql目录下create-all-sql-3.46.0-2-gf9ec3aa.sql文件) 
https://blog.csdn.net/qq_37279279/article/details/81541869

update azkaban.executors set active=1;

修改azkaban配置文件
# Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=My Local Azkaban
azkaban.color=#FF3601
azkaban.default.servlet.path=/index
web.resource.dir=/root/soft/azkabatt/azkaban-web-server-3.81.0-1-g304593d/web
default.timezone.id=Asia/Shanghai
# Azkaban UserManager class
user.manager.class=azkaban.user.XmlUserManager
user.manager.xml.file=/root/soft/azkabatt/azkaban-web-server-3.81.0-1-g304593d/conf/azkaban-users.xml
# Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
# Velocity dev mode
velocity.dev.mode=false
# Azkaban Jetty server properties.
jetty.maxThreads=25
jetty.ssl.port=8443
jetty.port=8081
jetty.keystore=keystore
jetty.password=azkaban
jetty.keypassword=azkaban
jetty.truststore=keystore
jetty.trustpassword=azkaban
# Where the Azkaban web server is located
azkaban.webserver.url=http://localhost:8081
# mail settings
mail.sender=
mail.host=
# User facing web server configurations used to construct the user facing server URLs. They are useful when there is a reverse proxy between Azkaban web servers and users.
# enduser -> myazkabanhost:443 -> proxy -> localhost:8081
# when this parameters set then these parameters are used to generate email links.
# if these parameters are not set then jetty.hostname, and jetty.port(if ssl configured jetty.ssl.port) are used.
# azkaban.webserver.external_hostname=myazkabanhost.com
# azkaban.webserver.external_ssl_port=443
# azkaban.webserver.external_port=8081
job.failure.email=
job.success.email=
lockdown.create.projects=false
cache.directory=cache
# JMX stats
jetty.connector.stats=true
executor.connector.stats=true
# Azkaban plugin settings
azkaban.jobtype.plugin.dir=plugins/jobtypes
# Azkaban mysql settings by default. Users should configure their own username and password.
database.type=mysql
mysql.port=3306
mysql.host=localhost
mysql.database=azkaban
mysql.user=root
mysql.password=13579admin
mysql.numconnections=100
# Azkaban Executor settings
executor.maxThreads=50
executor.flow.threads=30
executor.port=12321
azkaban.use.multiple.executors=true
set password for root@localhost = password('13579admin'); 
user.manager.xml.file=/opt/azkaban/azkaban-web-server/build/install/azkaban-web-server/conf/azkaban-users.xml
 

本文由【泡海椒】发布于开源中国,原文链接:https://my.oschina.net/goudingcheng/blog/3136899

全部评论: 0

    我有话说: