UnsatisfiedLinkError on Lib rocks DB dll when developing with Kafka Streams

后端 未结 6 1125
夕颜
夕颜 2020-12-18 05:34

I\'m writing a Kafka Streams application on my development Windows machine. If I try to use the leftJoin and branch features of Kafka Streams I get

6条回答
  •  轮回少年
    2020-12-18 06:05

    My problem was permissions in /tmp/ directory (CentOS)

    rockdb uses

    java.io.tmpdir 
    

    system property internally to decide where to place librocksdbjnifile, usually something like this /tmp/librocksdbjni2925599838907625983.so

    Solved by setting different tempdir property with appropriate permissions in kafka-streams app.

    System.setProperty("java.io.tmpdir", "/opt/kafka-streams/tmp");
    

提交回复
热议问题