You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by manish bansal <ma...@gmail.com> on 2017/03/31 14:12:31 UTC

Getting java.lang.UnsatisfiedLinkError: Cannot load module /tmp/librocksdbjni858257496864179953.so

I am using kafka_2.11-0.10.2.0. I have downloaded the binaries directly
from apache which contains rocksdbjni-5.0.1.jar. I am developing kafka
streaming application. It is using RocksDB for internal purpose. However,
during my application run, getting below error.

Exception in thread "StreamThread-1" java.lang.UnsatisfiedLinkError:
/tmp/librocksdbjni858257496864179953.so ( 0509-022 Cannot load module
/tmp/librocksdbjni858257496864179953.so.
0509-026 System error: Cannot run a file that does not have a valid format.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1213)
at java.lang.System.load(System.java:517)
at
org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
at org.rocksdb.RocksDB.(RocksDB.java:35)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
at org.rocksdb.Options.(Options.java:22)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
at
org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:115)

Platform: AIX 6.1 64 bit

-- 
Regards,
Manish Bansal

Re: Getting java.lang.UnsatisfiedLinkError: Cannot load module /tmp/librocksdbjni858257496864179953.so

Posted by "Matthias J. Sax" <ma...@confluent.io>.
Cross-posted twice (including an answer):

https://github.com/facebook/rocksdb/issues/2071
http://stackoverflow.com/questions/43140522/exception-in-thread-streamthread-1-java-lang-unsatisfiedlinkerror-cannot-load

> I don't understand why i need to re-build this. I downloaded the binaries which already has this jar pre-packaged. Kindly enlighten me. Thank you in advance.

The prebuild binaries are not compatible with AIX platform.

Note, Kafka Stream officially only supports Linux and even if AIX is a
Unix based system, it's often not compatible and you need different
binaries.



-Matthias

On 3/31/17 7:12 AM, manish bansal wrote:
> I am using kafka_2.11-0.10.2.0. I have downloaded the binaries directly
> from apache which contains rocksdbjni-5.0.1.jar. I am developing kafka
> streaming application. It is using RocksDB for internal purpose. However,
> during my application run, getting below error.
> 
> Exception in thread "StreamThread-1" java.lang.UnsatisfiedLinkError:
> /tmp/librocksdbjni858257496864179953.so ( 0509-022 Cannot load module
> /tmp/librocksdbjni858257496864179953.so.
> 0509-026 System error: Cannot run a file that does not have a valid format.)
> at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1213)
> at java.lang.System.load(System.java:517)
> at
> org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
> at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
> at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
> at org.rocksdb.RocksDB.(RocksDB.java:35)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
> at org.rocksdb.Options.(Options.java:22)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
> at
> org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:115)
> 
> Platform: AIX 6.1 64 bit
>