sky-uk/kafka-message-scheduler

java.lang.UnsatisfiedLinkError: libsnappyjava.so when using kafka compression

lukeworgerSky opened this issue · 3 comments

Hi, we tried to consume messages using kms with a Kafka broker using compression.type=snappy turned on. When KMS consumer tried to decompress the message we received the following error.

java.lang.UnsatisfiedLinkError: /tmp/snappy-1.1.7-3b339156-ef0c-4cd6-91b0-0e405aa6045c-libsnappyjava.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory

By adding a glibc dynamic loader via apk add --no-cache libc6-compat the problem was solved as the Alpine image doesn't run with glibc by default.

Please can we add this to the kafka-message-scheduler base image?

Hi @lukeworgerSky, is this still an issue?

Hi @bcarter97 we no longer own the application making use of KMS. We worked around it by providing the required lib in our image which extended this KMS image so I believe it is still required but have not checked since I raised this issue.

I will keep this issue open then 👍