美文网首页
azkaban 编译

azkaban 编译

作者: code_solve | 来源:发表于2018-11-09 10:49 被阅读0次

步骤:

1.准备环境:Linux 系统,java 1.8.0 以上环境

  1. 下载azkaban源码到本地 https://github.com/azkaban/azkaban
  2. 解压到指定目录,比如我们解压到 /opt/softwares/azkaban
  3. 运行 在解压目录运行 :
# 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
  1. 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包,解决:

相关文章

网友评论

      本文标题:azkaban 编译

      本文链接:https://www.haomeiwen.com/subject/ppmnxqtx.html