2.Azkaban分布式部署之azkaban-exec-server

相关包文件: azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz

解压重命名为:azkaban-exec-server

一: azkaban.properties相关的配置步骤

①,添加

# Set databases
database.type=mysql
mysql.port=3306
mysql.host=172.16.0.58
mysql.database=azkaban
mysql.user=azkaban
mysql.password=azkaban
mysql.numconnections=200

②修改时区:

default.timezone.id=Asia/Shanghai

③配置jobtypes

# Azkaban plugin settings
azkaban.jobtype.plugin.dir=plugins/jobtypes

二:plugins/jobtypes/commonprivate.properties相关的配置(plugins目录如果不存在可以从azkaban-solo-server服务下拷贝)

# set execute-as-user
execute.as.user=false
azkaban.native.lib=false

启动:

bin/start-exec.sh 

激活execute

curl http://{ip}:12321/executor?action=activate

conf下的文件:

注意:添加log4j.properties文件

azkaban.properties  azkaban-users.xml  global.properties  log4j.properties

azkaban.properties 内容如下:

default.timezone.id=Asia/Shanghai
# Loader for projects
executor.global.properties=conf/global.properties
azkaban.project.dir=projects
# Set databases
database.type=mysql
mysql.port=3306
mysql.host=127.0.0.1
mysql.database=azkaban
mysql.user=azkaban
mysql.password=azkaban
mysql.numconnections=200

# 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

 

 

 

 

 

你可能感兴趣的:(2.Azkaban分布式部署之azkaban-exec-server)