Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
280 views
in Technique[技术] by (71.8m points)

java - Executing kafka-stream example with eclipse, fails with UnsatisfiedLinkError for librocksdbjni.dll (Can't find dependency)

I am trying to run a kafka-stream wordcount example with eclipse IDE but getting following error: I have added 0.10.1.0 kafka-client and 0.10.1.0 kafka-stream as dependency in my pom file. I have also checked the dependency tree and it's using rocksdbjni-4.9 jar. Based on some read on internet, this issue has been fixed on 0.10.1.0 version of kafka but I am still getting. Any help?

Exception in thread "StreamThread-1" java.lang.UnsatisfiedLinkError: LocalTemplibrocksdbjni6935746072594020003.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
    at java.lang.Runtime.load0(Runtime.java:809)
    at java.lang.System.load(System.java:1086)
    at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
    at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
    at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:47)
    at org.rocksdb.RocksDB.<clinit>(RocksDB.java:23)
    at org.rocksdb.Options.<clinit>(Options.java:21)
    at org.apache.kafka.streams.state.internals.RocksDBStore.<init>(RocksDBStore.java:127)
    at org.apache.kafka.streams.state.internals.RocksDBStore.<init>(RocksDBStore.java:112)
    at org.apache.kafka.streams.state.internals.RocksDBKeyValueStoreSupplier.get(RocksDBKeyValueStoreSupplier.java:56)
    at org.apache.kafka.streams.processor.TopologyBuilder.build(TopologyBuilder.java:787)
    at org.apache.kafka.streams.processor.TopologyBuilder.build(TopologyBuilder.java:761)
    at org.apache.kafka.streams.processor.internals.StreamThread.createStreamTask(StreamThread.java:631)
    at org.apache.kafka.streams.processor.internals.StreamThread.addStreamTasks(StreamThread.java:660)
    at org.apache.kafka.streams.processor.internals.StreamThread.access$100(StreamThread.java:69)
    at org.apache.kafka.streams.processor.internals.StreamThread$1.onPartitionsAssigned(StreamThread.java:124)
    at org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.onJoinComplete(ConsumerCoordinator.java:228)
    at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.joinGroupIfNeeded(AbstractCoordinator.java:313)
    at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:277)
    at org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.poll(ConsumerCoordinator.java:259)
    at org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:1013)
    at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:979)
    at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:407)
    at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:242)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Windows is not officially supported, yet.

However, Rocksdb 4.9.0+ releases should have a Windows DLL build and should work out of the box.

For older versions, there is also as workaround as described here: http://search-hadoop.com/m/Kafka/uyzND13pNzscClkW1?subj=Re+Kafka+Streams+on+Windows+


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...