Azkaban3.x编译

1.环境准备

git,gcc,g++, jdk1.8,联网环境

2.下载azkaban源码

git clone https://github.com/azkaban/azkaban.git 
或者(本次编译的是3.7.x)
wget https://github.com/azkaban/azkaban/archive/3.70.2.tar.gz

3.编译

1. 进入源码目录
/opt/cs/azkaban-3.43.0
[root@CS6 azkaban-3.70.2]# ll
总用量 172
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-core
	drwxrwxr-x. 4 root root  4096 5月  17 07:41 az-crypto
	drwxrwxr-x. 5 root root  4096 5月  17 07:41 az-examples
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-exec-util
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-flow-trigger-dependency-plugin
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-flow-trigger-dependency-type
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-hadoop-jobtype-plugin
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-hdfs-viewer
	-rw-rw-r--. 1 root root 21925 5月  17 07:41 az-intellij-style.xml
	drwxrwxr-x. 4 root root  4096 5月  17 07:41 az-jobsummary
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-common
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-db
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-exec-server
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-hadoop-security-plugin
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-solo-server
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-spi
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 azkaban-web-server
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 az-reportal
	-rw-rw-r--. 1 root root 10481 5月  17 07:41 build.gradle
	-rw-rw-r--. 1 root root  6339 5月  17 07:41 CONTRIBUTING.md
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 docs
	drwxrwxr-x. 3 root root  4096 5月  17 07:41 gradle
	-rw-rw-r--. 1 root root  1488 5月  17 07:41 gradle.properties
	-rwxrwxr-x. 1 root root  5296 5月  17 07:41 gradlew
	-rw-rw-r--. 1 root root  2260 5月  17 07:41 gradlew.bat
	-rw-rw-r--. 1 root root 11358 5月  17 07:41 LICENSE
	-rw-rw-r--. 1 root root  2359 5月  17 07:41 NOTICE
	-rw-rw-r--. 1 root root  2406 5月  17 07:41 README.md
	-rw-rw-r--. 1 root root    31 5月  17 07:41 requirements.txt
	-rw-rw-r--. 1 root root  1170 5月  17 07:41 settings.gradle
	drwxrwxr-x. 6 root root  4096 5月  17 07:41 test
	drwxrwxr-x. 2 root root  4096 5月  17 07:41 tools
	
2. 进入azkaban目录执行编译 ./gradlew build(需要联网)
./gradlew build

3. 编译安装成功如下
	BUILD SUCCESSFUL in 1m 54s
	104 actionable tasks: 96 executed, 8 from cache

在这里插入图片描述

4.获取编译完成后的安装包

ls */build/distributions/*

	az-crypto/build/distributions/az-crypto-0.1.0-SNAPSHOT.tar.gz
	az-crypto/build/distributions/az-crypto-0.1.0-SNAPSHOT.zip
	az-hadoop-jobtype-plugin/build/distributions/az-hadoop-jobtype-plugin-0.1.0-SNAPSHOT.tar.gz
	az-hadoop-jobtype-plugin/build/distributions/az-hadoop-jobtype-plugin-0.1.0-SNAPSHOT.zip
	az-hdfs-viewer/build/distributions/az-hdfs-viewer-0.1.0-SNAPSHOT.tar.gz
	az-hdfs-viewer/build/distributions/az-hdfs-viewer-0.1.0-SNAPSHOT.zip
	az-jobsummary/build/distributions/az-jobsummary-0.1.0-SNAPSHOT.tar.gz
	az-jobsummary/build/distributions/az-jobsummary-0.1.0-SNAPSHOT.zip
	azkaban-db/build/distributions/azkaban-db-0.1.0-SNAPSHOT.tar.gz
	azkaban-db/build/distributions/azkaban-db-0.1.0-SNAPSHOT.zip
	azkaban-exec-server/build/distributions/azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz
	azkaban-exec-server/build/distributions/azkaban-exec-server-0.1.0-SNAPSHOT.zip
	azkaban-hadoop-security-plugin/build/distributions/azkaban-hadoop-security-plugin-0.1.0-SNAPSHOT.tar.gz
	azkaban-hadoop-security-plugin/build/distributions/azkaban-hadoop-security-plugin-0.1.0-SNAPSHOT.zip
	azkaban-solo-server/build/distributions/azkaban-solo-server-0.1.0-SNAPSHOT.tar.gz
	azkaban-solo-server/build/distributions/azkaban-solo-server-0.1.0-SNAPSHOT.zip
	azkaban-web-server/build/distributions/azkaban-web-server-0.1.0-SNAPSHOT.tar.gz
	azkaban-web-server/build/distributions/azkaban-web-server-0.1.0-SNAPSHOT.zip
	az-reportal/build/distributions/az-reportal-0.1.0-SNAPSHOT.tar.gz
	az-reportal/build/distributions/az-reportal-0.1.0-SNAPSHOT.zip

Azkaban3.x编译_第1张图片

拷贝编译后的包到 /opt目录下

scp */build/distributions/*.tar.gz /opt

Azkaban3.x编译_第2张图片

你可能感兴趣的:(Azkaban,azkaban编译)