Azkaban Web 服务安装包 azkaban-web-server-0.1.0-SNAPSHOT.tar.gz Azkaban 执行服务安装包 azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz 编译之后的 sql 脚本 create-all-sql-0.1.0-SNAPSHOT.sql C 程序文件脚本 execute-as-user.c 程序
数据库准备
进入 mysql 的客户端执行以下命令
mysql -uroot -p
CREATE DATABASE azkaban; CREATEUSER'azkaban'@'%' IDENTIFIED BY'azkaban'; GRANTall privileges ON azkaban.*to'azkaban'@'%' identified by'azkaban'WITHGRANT OPTION; flush privileges; use azkaban; source /export/softwares/create-all-sql-0.1.0-SNAPSHOT.sql;
解压软件安装包
解压 azkaban-web-server
cd /export/softwares tar -zxvf azkaban-web-server-0.1.0-SNAPSHOT.tar.gz -C ../servers/ cd /export/servers mv azkaban-web-server-0.1.0-SNAPSHOT/ azkaban-web-server-3.51.0
解压 azkaban-exec-server
cd /export/softwares tar -zxvf azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz -C ../servers/ cd /export/servers mv azkaban-exec-server-0.1.0-SNAPSHOT/ azkaban-exec-server-3.51.0
安装 SSL 安全认证 允许我们使用 https 的方式访问 azkaban 的 web 服务
密码 azkaban 一定要一个个的字母输入,或者粘贴也行
cd /export/servers/azkaban-web-server-3.51.0 keytool -keystore keystore -alias jetty -genkey -keyalg RSA
azkaban web server 安装
修改 azkaban-web-server 的配置文件
cd /export/servers/azkaban-web-server-3.51.0/conf vim azkaban.properties
azkaban.properties
# Azkaban Personalization Settings azkaban.name=Azkaban azkaban.label=My 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 # Velocity dev mode velocity.dev.mode=false # Azkaban Jetty server properties. jetty.use.ssl=true jetty.maxThreads=25 jetty.port=8081 jetty.keystore=/export/servers/azkaban-web-server-3.51.0/keystore jetty.password=azkaban jetty.keypassword=azkaban jetty.truststore=/export/servers/azkaban-web-server-3.51.0/keystore jetty.trustpassword=azkaban # Azkaban Executor settings # 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 mysql settings by default. Users should configure their own username and password. database.type=mysql mysql.port=3306 mysql.host=node03 mysql.database=azkaban mysql.user=azkaban mysql.password=azkaban mysql.numconnections=100 #Multiple Executor azkaban.use.multiple.executors=true #azkaban.executorselector.filters=StaticRemainingFlowSize,MinimumFreeMemory,CpuStatus azkaban.executorselector.comparator.NumberOfAssignedFlowComparator=1 azkaban.executorselector.comparator.Memory=1 azkaban.executorselector.comparator.LastDispatched=1 azkaban.executorselector.comparator.CpuUsage=1 #executor.port=12321
azkaban executor server 安装
第一步:修改 azkaban-exex-server 配置文件
cd /export/servers/azkaban-exec-server-3.51.0/conf vim azkaban.properties
azkaban.properties
# Azkaban Personalization Settings azkaban.name=Azkaban azkaban.label=My 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 # Velocity dev mode velocity.dev.mode=false # Azkaban Jetty server properties. jetty.use.ssl=true jetty.maxThreads=25 jetty.port=8081 jetty.keystore=/export/servers/azkaban-web-server-3.51.0/keystore jetty.password=azkaban jetty.keypassword=azkaban jetty.truststore=/export/servers/azkaban-web-server-3.51.0/keystore jetty.trustpassword=azkaban # Where the Azkaban web server is located azkaban.webserver.url=https://node03:8443 # 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 usernameand password. database.type=mysql mysql.port=3306 mysql.host=node03 mysql.database=azkaban mysql.user=azkaban mysql.password=azkaban mysql.numconnections=100 # Azkaban Executor settings executor.maxThreads=50 executor.flow.threads=30
第二步:添加插件
将我们编译后的 C 文件 execute-as-user.c 上传到这个目录来 /export/servers/azkaban-exec-server-3.51.0/plugins/jobtypes 或者直接将我们 /export/softwares 下面的文件拷贝过来也行