[jira] [Comment Edited] (NIFI-6557) Build on master fails for Java 11 builds due RocksDB JNI Issues
[ https://issues.apache.org/jira/browse/NIFI-6557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16908243#comment-16908243 ] Jeff Storck edited comment on NIFI-6557 at 8/15/19 4:19 PM: [~joewitt], what version of Java 11 are you using? If it's AdoptOpenJDK 11.0.4, there is an issue with loading native libraries on OSX. You can use AdoptOpenJDK 11.0.3 until a new release of 11.0.4 has been made. Since this is only an issue on OSX, the Travis build will not run into since it's linux-based and uses AdoptOpenJDK 11.0.4. To downgrade to AdoptOpenJDK 11.0.3, you can follow the instructions in this comment: [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211#issuecomment-521392147] A couple references with the issue: * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1206] * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211] And the PR to fix it, which has been merged: [https://github.com/AdoptOpenJDK/openjdk-build/pull/1207] Hopefully the fixed version will be released soon. was (Author: jtstorck): [~joewitt], what version of Java 11 are you using? If it's AdoptOpenJDK 11.0.4, there is an issue with loading native libraries on OSX. You can use AdoptOpenJDK 11.0.3 until a new release of 11.0.4 has been made. Since this is only an issue on OSX, the Travis build will not run into this issue, since it's linux-based and uses AdoptOpenJDK 11.0.4. To downgrade to AdoptOpenJDK 11.0.3, you can follow the instructions in this comment: [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211#issuecomment-521392147] A couple references with the issue: * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1206] * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211] And the PR to fix it, which has been merged: [https://github.com/AdoptOpenJDK/openjdk-build/pull/1207] Hopefully the fixed version will be released soon. > Build on master fails for Java 11 builds due RocksDB JNI Issues > --- > > Key: NIFI-6557 > URL: https://issues.apache.org/jira/browse/NIFI-6557 > Project: Apache NiFi > Issue Type: Bug >Reporter: Joseph Witt >Priority: Blocker > Labels: Java11 > Fix For: 1.10.0 > > > [~jtstorck] recently got the Java 11 build for NiFi working and it was merged. > [~devriesb] recently got the RocksDB flowfile impl commited. However, it > doesn't appear to work on Java 11 builds. > This needs to be resolved as we need Java 11 builds to work going forward. > Can you two please coordinate and resolve. > [ERROR] Tests run: 10, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: > 1.004 s <<< FAILURE! - in org.apache.nifi.rocksdb.TestRocksDBMetronome > [ERROR] testColumnFamilies(org.apache.nifi.rocksdb.TestRocksDBMetronome) > Time elapsed: 0.54 s <<< ERROR! > java.lang.UnsatisfiedLinkError: > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > > dlopen(/private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib, > 1): no suitable image found. Did find: > > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > code signature in > (/private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib) > not valid for use in process using Library Validation: mapped file has no > cdhash, completely unsigned? Code has to be at least ad-hoc signed. > > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > stat() failed with errno=38 > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testColumnFamilies(TestRocksDBMetronome.java:163) > [ERROR] testWaitForSync(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.004 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testWaitForSync(TestRocksDBMetronome.java:260) > [ERROR] > testWaitForSyncWithValue(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.003 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testWaitForSyncWithValue(TestRocksDBMetronome.java:291) > [ERROR] testCounterIncrement(org.apache.nifi.rocksdb.TestRocksDBMetronome) > Time elapsed: 0.002 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testCounterIncrement(TestRocksDBMetronome.java:241) > [ERROR] testPutGetDelete(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.002 s <<< ERROR! > java.lang.NoClassDefFoundError: Could
[jira] [Comment Edited] (NIFI-6557) Build on master fails for Java 11 builds due RocksDB JNI Issues
[ https://issues.apache.org/jira/browse/NIFI-6557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16908243#comment-16908243 ] Jeff Storck edited comment on NIFI-6557 at 8/15/19 4:18 PM: [~joewitt], what version of Java 11 are you using? If it's AdoptOpenJDK 11.0.4, there is an issue with loading native libraries on OSX. You can use AdoptOpenJDK 11.0.3 until a new release of 11.0.4 has been made. Since this is only an issue on OSX, the Travis build will not run into this issue, since it's linux-based and uses AdoptOpenJDK 11.0.4. To downgrade to AdoptOpenJDK 11.0.3, you can follow the instructions in this comment: [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211#issuecomment-521392147] A couple references with the issue: * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1206] * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211] And the PR to fix it, which has been merged: [https://github.com/AdoptOpenJDK/openjdk-build/pull/1207] Hopefully the fixed version will be released soon. was (Author: jtstorck): [~joewitt], what version of Java 11 are you using? If it's AdoptOpenJDK 11.0.4, there is an issue with loading native libraries on OSX. You can use AdoptOpenJDK 11.0.3 until a new release of 11.0.4 has been made. To downgrade to AdoptOpenJDK 11.0.3, you can follow the instructions in this comment: [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211#issuecomment-521392147] A couple references with the issue: * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1206] * [https://github.com/AdoptOpenJDK/openjdk-build/issues/1211] And the PR to fix it, which has been merged: [https://github.com/AdoptOpenJDK/openjdk-build/pull/1207] Hopefully the fixed version will be released soon. > Build on master fails for Java 11 builds due RocksDB JNI Issues > --- > > Key: NIFI-6557 > URL: https://issues.apache.org/jira/browse/NIFI-6557 > Project: Apache NiFi > Issue Type: Bug >Reporter: Joseph Witt >Priority: Blocker > Labels: Java11 > Fix For: 1.10.0 > > > [~jtstorck] recently got the Java 11 build for NiFi working and it was merged. > [~devriesb] recently got the RocksDB flowfile impl commited. However, it > doesn't appear to work on Java 11 builds. > This needs to be resolved as we need Java 11 builds to work going forward. > Can you two please coordinate and resolve. > [ERROR] Tests run: 10, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: > 1.004 s <<< FAILURE! - in org.apache.nifi.rocksdb.TestRocksDBMetronome > [ERROR] testColumnFamilies(org.apache.nifi.rocksdb.TestRocksDBMetronome) > Time elapsed: 0.54 s <<< ERROR! > java.lang.UnsatisfiedLinkError: > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > > dlopen(/private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib, > 1): no suitable image found. Did find: > > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > code signature in > (/private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib) > not valid for use in process using Library Validation: mapped file has no > cdhash, completely unsigned? Code has to be at least ad-hoc signed. > > /private/var/folders/16/93g5x2rn1bz04szc2t62xcrmgp/T/librocksdbjni6839704530639209130.jnilib: > stat() failed with errno=38 > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testColumnFamilies(TestRocksDBMetronome.java:163) > [ERROR] testWaitForSync(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.004 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testWaitForSync(TestRocksDBMetronome.java:260) > [ERROR] > testWaitForSyncWithValue(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.003 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testWaitForSyncWithValue(TestRocksDBMetronome.java:291) > [ERROR] testCounterIncrement(org.apache.nifi.rocksdb.TestRocksDBMetronome) > Time elapsed: 0.002 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at > org.apache.nifi.rocksdb.TestRocksDBMetronome.testCounterIncrement(TestRocksDBMetronome.java:241) > [ERROR] testPutGetDelete(org.apache.nifi.rocksdb.TestRocksDBMetronome) Time > elapsed: 0.002 s <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB > at >