1.下载azkaban的源码

https://github.com/azkaban/azkaban.git

然后解压得到azkaban-master.zip,解压:unzip azkaban-master.zip

2.编译源码

进入azkaban-master目录,执行

# Build Azkaban
./gradlew build # Clean the build
./gradlew clean # Build and install distributions
./gradlew installDist # Run tests
./gradlew test # Build without running tests
./gradlew build -x test

一开始会下gradle-4.0.2-all.zip,可能会下很慢.那么手动下载gradle-4.0.2-all.zip:

https://services.gradle.org/distributions/gradle-4.0.2-all.zip

下载完成后,找到之前grad命令下载的文件的位置:

 [root@bqbpm2 ~]# find . -name gradle-4.0.2*
./.gradle/wrapper/dists/gradle-4.0.2-all
./.gradle/wrapper/dists/gradle-4.0.2-all/680wmhe205zg4atnbsmvvt28p/gradle-4.0.2-all.zip.part
./.gradle/wrapper/dists/gradle-4.0.2-all/680wmhe205zg4atnbsmvvt28p/gradle-4.0.2-all.zip.lck

下载在./.gradle/wrapper/dists/gradle-4.0.2-all/680wmhe205zg4atnbsmvvt28p/这个目录下,那么把下好的zip包复制到这里,然后再执行编译即可.

此外,编译azkaban需要git!

* Where:
Build file '/root/azkaban-master/build.gradle' line: 30 * What went wrong:
A problem occurred evaluating root project 'azkaban'.
> Failed to apply plugin [id 'com.cinnober.gradle.semver-git']
> Cannot run program "git" (in directory "/root/azkaban-master"): error=2, No such file or directory

需要在azkaban-master目录下执行git命令!因此要先安装git工具

05-20 15:48