mysql> create database azkaban;
create user 'azkaban'@'%' identified by 'azkaban123';
grant select,insert,update,delete on azkaban.* to 'azkaban'@'%' with grant option;
#刷新权限
flush privileges;
#导入数据库
source /root/app/azkaban-3.40.0/azkaban-db/build/install/azkaban-db/create-all-sql-0.1.0-SNAPSHOT.sql
#安装 web
[root@hadoop000 distributions]# pwd
/root/app/azkaban-3.40.0/azkaban-web-server/build/distributions
root@hadoop000 distributions]# tar -zxvf azkaban-web-server-0.1.0-SNAPSHOT.tar.gz -C ~/app/
Set up Azkaban Web Server
Installing the Web Server
Getting KeyStore for SSL
[root@hadoop000 azkaban-web-server-0.1.0-SNAPSHOT]# pwd
/root/app/azkaban-web-server-0.1.0-SNAPSHOT
[root@hadoop000 azkaban-web-server-0.1.0-SNAPSHOT]# keytool -keystore keystore -alias jetty -genkey -keyalg RSA
#这个里面没有conf
[root@hadoop000 azkaban-web-server-0.1.0-SNAPSHOT]# mkdir conf
[root@hadoop000 azkaban-web-server-0.1.0-SNAPSHOT]# cd conf/
[root@hadoop000 conf]# pwd
/root/app/azkaban-web-server-0.1.0-SNAPSHOT/conf
[root@hadoop000 conf]# pwd
/root/app/azkaban-solo-server-0.1.0-SNAPSHOT/conf
You have mail in /var/spool/mail/root
[root@hadoop000 conf]# cp * /root/app/azkaban-web-server-0.1.0-SNAPSHOT/conf
修改里面的文件内容
[root@hadoop000 conf]# pwd
vim /root/app/azkaban-web-server-0.1.0-SNAPSHOT/conf/azkaban.properties
# Azkaban Personalization Settings
azkaban.name=PK
azkaban.label=PK Local 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=localhost
mysql.database=azkaban
mysql.user=azkaban
mysql.password=azkaban123
mysql.numconnections=100
# Velocity dev mode
velocity.dev.mode=false
# Azkaban Jetty server properties.
jetty.use.ssl=true
jetty.maxThreads=25
jetty.port=8081
jetty.ssl.port=8443
jetty.keystore=/root/app/azkaban-web-server-0.1.0-SNAPSHOT/keystore
jetty.password=123456
jetty.keypassword=123456
jetty.truststore=/root/app/azkaban-web-server-0.1.0-SNAPSHOT/keystore
jetty.trustpassword=123456
/root/app/azkaban-web-server-0.1.0-SNAPSHOT/conf/log4j.properties
log4j.rootLogger=INFO,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
#启动
[root@hadoop000 azkaban-web-server-0.1.0-SNAPSHOT]# bin/azkaban-web-start.sh