**
在web/conf/
**
vim azkaban.properties
Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=My 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
Velocity dev mode
velocity.dev.mode=false
Azkaban Jetty server properties.
jetty.use.ssl=true
jetty.ssl.port=8443
jetty.maxThreads=25
jetty.port=8081
Azkaban Executor settings
executor.host=localhost
executor.port=12321
mail settings
mail.sender=
mail.host=
KeyStore for SSL
jetty.keystore=keystore
jetty.password=123456
jetty.keypassword=123456
jetty.truststore=keystore
jetty.trustpassword=123456
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=node-1
mysql.database=azkaban_two_server
mysql.user=root
mysql.password=hadoop
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
第二个修改点:
cd /export/servers/azkaban/azkaban-web-server-0.1.0-SNAPSHOT
mkdir -p plugins/jobtypes
cd plugins/jobtypes/
vim commonprivate.properties
azkaban.native.lib=false
execute.as.user=false
memCheck.enabled=false
下面时在azkaban executor服务器配置修改:
第一个修改的:::
cd /export/servers/azkaban/azkaban-exec-server-0.1.0-SNAPSHOT/conf
vim azkaban.properties
Azkaban Personalization Settings
azkaban.name=Test
azkaban.label=My 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
Velocity dev mode
velocity.dev.mode=false
Azkaban Jetty server properties.
jetty.use.ssl=false
jetty.maxThreads=25
jetty.port=8081
Where the Azkaban web server is located
azkaban.webserver.url=https://node-1:8443
mail settings
mail.sender=
mail.host=
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=node-1
mysql.database=azkaban_two_server
mysql.user=root
mysql.password=hadoop
mysql.numconnections=100
Azkaban Executor settings
executor.maxThreads=50
executor.flow.threads=30
executor.port=12321
安装完毕后,在各自的服务器下启动,一定要在服务器的跟目录下启动:::
bin/start-exec.sh
bin/start-web.sh
首次启动 在mysql中的executors表中
最后一个字段active表示激活状态
0表示未激活
1表示激活
安装完成后,检查进程:
有了这两个进程名之后,在登陆web端查看;
在web端一定要输入: https://123.156.489.45:8081
一定要把http改成https 第一登录进去后,
需要账号和密码, 默认情况下账号密码都为:azkaban