UnsatisfiedLinkError: /tmp/snappy-1.1.4-libsnappyjava.so Error loading shared library ld-linux-x86-64.so.2: No such file or directory

后端 未结 5 892
天命终不由人
天命终不由人 2020-12-09 02:51

I am trying to run a Kafka Streams application in kubernetes. When I launch the pod I get the following exception:

Exception in thread \"streams-pipe-e19c2d9         


        
5条回答
  •  盖世英雄少女心
    2020-12-09 03:30

    There are two solutions of this problem:

    1. You may use some other base image with pre-installed snappy-java lib. For example openjdk:8-jre-slim works fine for me

    2. And the other solution is to still use openjdk:8-jdk-alpine image as base one, but then install snappy-java lib manually:

    FROM openjdk:8-jdk-alpine
    RUN apk update && apk add --no-cache gcompat
    ...
    

提交回复
热议问题