1.jdk8
2.yum install gcc yum install gcc-c++
git clone [email protected]:azkaban/azkaban.git
git checkout 3.30.1 #指定版本
1 mysql> CREATE DATABASE azkaban;
2 mysql> CREATE USER ‘azkaban’@’%’ IDENTIFIED BY ‘azkaban’;
3 mysql> CREATE USER ‘azkaban’@‘localhost’ IDENTIFIED BY ‘azkaban’;
4 mysql> grant all privileges on azkaban.* to ‘azkaban’@’%’ identified by ‘azkaban’;
5 mysql> grant all privileges on azkaban.* to ‘azkaban’@‘localhost’ identified by ‘azkaban’;
6 mysql> flush privileges;
./gradlew distTar
./azkaban-3.47.0/azkaban-web-server/build/distributions/azkaban-web-server-0.1.0-SNAPSHOT.tar.gz
./azkaban-3.47.0/azkaban-solo-server/build/distributions/azkaban-solo-server-0.1.0-SNAPSHOT.tar.gz
./azkaban-3.47.0/azkaban-db/build/distributions/azkaban-db-0.1.0-SNAPSHOT.tar.gz
mysql -uazkaban -p> SOURCE /./azkaban-3.47.0/azkaban-db/build/distributions/azkaban-db-0.1.0-SNAPSHOT/create-all-sql-0.1.0-SNAPSHOT.sql;
Mv /./azkaban-3.47.0/azkaban-web-server/build/distributions/azkaban-web-server-0.1.0-SNAPSHOT /./Azkaban-web-servercp -r /./azkaban-3.47.0/azkaban-solo-server/build/distributions/azkaban-solo-server-0.1.0-SNAPSHOT/conf /./Azkaban-web-server/conf
#Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=Shuiwujia Azkaban
azkaban.color=#FF3601
azkaban.default.servlet.path=/index
web.resource.dir=web/
default.timezone.id=Asia/Shanghai
#Azkaban UserManager class
user.manager.class=azkaban.user.XmlUserManager
user.manager.xml.file=conf/azkaban-users.xml
#Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
database.type=mysql
mysql.port=3306
mysql.host=10.168.1.115
mysql.database=azkaban
mysql.user=azkaban
mysql.password=123456
mysql.numconnections=100
#Velocity dev mode
“conf/azkaban.properties” 49L, 1589C
#Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=Shuiwujia Azkaban
azkaban.color=#FF3601
azkaban.default.servlet.path=/index
web.resource.dir=web/
default.timezone.id=Asia/Shanghai
#Azkaban UserManager class
user.manager.class=azkaban.user.XmlUserManager
user.manager.xml.file=conf/azkaban-users.xml
#Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
database.type=mysql
mysql.port=3306
mysql.host=10.168.1.115
mysql.database=azkaban
mysql.user=azkaban
mysql.password=123456
mysql.numconnections=100
#Velocity dev mode
velocity.dev.mode=false
#Azkaban Jetty server properties.
jetty.use.ssl=false
jetty.maxThreads=25
jetty.port=8081
#Azkaban Executor settings
executor.port=12321
#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
tar -zxvf azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz -C ./
mv azkaban-exec-server-0.1.0-SNAPSHOT Azkaban-exec-server
default.timezone.id=Asia/Shanghai
#Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
database.type=mysql
mysql.port=3306
mysql.host=10.168.1.115
mysql.database=azkaban
mysql.user=azkaban
mysql.password=123456
mysql.numconnections=100
#Azkaban Executor settings
executor.maxThreads=50
executor.port=12321
executor.flow.threads=30
#JMX stats
jetty.connector.stats=true
executor.connector.stats=true
#Azkaban plugin settings
azkaban.jobtype.plugin.dir=plugins/jobtypes
log4j.rootLogger=DEBUG,C
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.Target=System.err
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.C.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
azkaban.native.lib=false
execute.as.user=false
Azkaban-exec-server目录下执行
1 bin/start-exec.sh
2 curl http://${ip}:12321/executor?action=activate
Azkaban-web-server目录下执行
bin/start-web.sh
http://10.168.1.115:8081/