azkaban (version 2.5.0) installed

Configure mysql character encoding

1. Log in MySQL

mysql -u root -p

2. Check the character encoding

show variables like 'character%';

If utf8 ignore this!

You should not modify the configuration file:

vi /etc/my.cnf

 In [mysqld] Add the following character set encoding

character_set_server=utf8

Landing mysql script execution

1. Create a database azkaban

CREATE DATABASE azkaban;

2. Authorizes

grant all on *.* to azkaban@'%'  identified by 'azkaban';
grant all on *.* to azkaban@'hadoop01'  identified by 'azkaban';
grant all on *.* to azkaban@'localhost'  identified by 'azkaban';

3. Refresh rights

flush privileges;

4. Exit

exit

5. Use azkaban User Login

mysql -uazkaban -pzakaban

6. perform initialization script (Azkaban required data table)

source /root/create-all-sql-2.5.0.sql;

 

Azkaban Web Server Configuration

1. Upload azkaban-web-2.5.0.zip, mysql-connector-java-5.1.46-bin.jar to the server

2. Extract

unzip azkaban-web-2.5.0.zip

3. Move to the / usr / local / position

mv azkaban-web-2.5.0 /usr/local/

4. Copy jdbc driver to azkaban-web-2.5.0 / extlib /

cp mysql-connector-java-5.1.46-bin.jar /usr/local/azkaban-web-2.5.0/extlib/

Configuration jetty ssl

1. generate keystore

keytool -keystore keystore -alias jetty -genkey -keyalg RSA
输入密钥库口令:password
再次输入新口令:password
您的名字与姓氏是什么?
  [Unknown]:  jetty.mortbay.org
您的组织单位名称是什么?
  [Unknown]:  Jetty
您的组织名称是什么?
  [Unknown]:  Mort Bay Consulting Pty. Ltd.
您所在的城市或区域名称是什么?
  [Unknown]:
您所在的省/市/自治区名称是什么?
  [Unknown]:
该单位的双字母国家/地区代码是什么?
  [Unknown]:
CN=jetty.mortbay.org, OU=Jetty, O=Mort Bay Consulting Pty. Ltd., L=Unknown, ST=Unknown, C=Unknown是否正确?
  [否]: 是

输入 <jetty> 的密钥口令
        (如果和密钥库口令相同, 按回车):

2. Copy the keystore to azkaban-web-2.5.0

cp keystore /usr/local/azkaban-web-2.5.0/

Modify the configuration file

1. Go to azkaban-web-2.5.0 / conf / directory modification azkaban.properties file

cd /usr/local/azkaban-web-2.5.0/conf/
vi azkaban.properties

Modifications are as follows:

#默认时区,已改为亚洲/上海默认为美国                                  
default.timezone.id=Asia/Shanghai
#数据库连接IP                                                                      
mysql.host=hadoop01    

2. Modify the file permissions

chmod 755  /usr/local/azkaban-web-2.5.0/bin/*

Azkaban Executor Server Configuration

1. Upload azkaban-executor-2.5.0.zip

2. Extract azkaban-executor-2.5.0.zip

unzip azkaban-executor-2.5.0.zip

3. Move to the / usr / local

mv azkaban-executor-2.5.0 /usr/local/

 Azkaban perform server configuration

1. Go to perform a server installation directory to modify configuration files

cd /usr/local/azkaban-executor-2.5.0/conf/
vi azkaban.properties

Modified as follows

#时区
default.timezone.id=Asia/Shanghai

#数据库IP地址         
mysql.host=hadoop01

#数据库实例名
mysql.database=azkaban

Modify file permissions

chmod 755 /usr/local/azkaban-executor-2.5.0/bin/*

User Configuration

1. Go to azkaban web server conf directory, modify azkaban-users.xml

cd /usr/local/azkaban-web-2.5.0/conf/
vi azkaban-users.xml

Add Content

<user username="admin" password="admin" roles="admin,metrics" />

Start web server

Performed /usr/local/azkaban-web-2.5.0/

bin/azkaban-web-start.sh ./

Start execution server

Performed under /usr/local/azkaban-executor-2.5.0/

bin/azkaban-executor-start.sh ./

After startup, enter in your browser HTTPS: // ip: 8443 , to access the services enter in the login azkaban just in a new household name and password, click login..

 

 

Guess you like

Origin blog.csdn.net/drl_blogs/article/details/91047631