步骤:
1.准备环境:Linux 系统,java 1.8.0 以上环境
- 下载azkaban源码到本地 https://github.com/azkaban/azkaban
- 解压到指定目录,比如我们解压到 /opt/softwares/azkaban
- 运行 在解压目录运行 :
# 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
- BUILD SUCCESSFUL:如果成功之后,那么 你应该可以在解压目录的
azkaban-solo-server/build/distributions/
找到一个名为azkaban-solo-server-0.1.0-SNAPSHOT.tar.gz
的包,也就是编译成功后的产物了。
问题:
script-test:
[echo] Testing encrypt.sh
[exec] Exception in thread “main” org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine
[exec] at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.handleInvalidKeyException(StandardPBEByteEncryptor.java:1073)
[exec] at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.encrypt(StandardPBEByteEncryptor.java:924)
[exec] at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.encrypt(StandardPBEStringEncryptor.java:642)
[exec] at azkaban.crypto.CryptoV1_1.encrypt(CryptoV1_1.java:42)
[exec] at azkaban.crypto.Crypto.encrypt(Crypto.java:49)
[exec] at azkaban.crypto.EncryptionCLI.main(EncryptionCLI.java:58)
这是因为 java环境缺少了相应的jce包,解决:
- https://www.oracle.com/technetwork/java/javase/downloads/jce-all-download-5170447.html 下载相对于版本的 jce 包
- 拷贝
local_policy.jar
和US_export_policy.jar
到$JAVA_HOME/jre/lib/security
目录下,如果已经存在,请备份,然后覆盖。 - 重新编译
网友评论