Open cruxhoo opened 5 years ago
I was able to solve this by installing an older version of librdkafka (0.11.4). This is the code required in dockerfile
ENV LIBRDKAFKA_VERSION 0.11.4
RUN curl -Lk -o /root/librdkafka-${LIBRDKAFKA_VERSION}.tar.gz https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz && \
tar -xzf /root/librdkafka-${LIBRDKAFKA_VERSION}.tar.gz -C /root && \
cd /root/librdkafka-${LIBRDKAFKA_VERSION} && \
./configure --prefix /usr && make && make install && make clean && ./configure --clean
interesting. first, you don't need to / shouldn't install the librdkafka-dev
package - Confluent.Kafka
references the librdkafka.redist
nuget package which provides an appropriate librdkafka build for the version you reference. i'm guessing the error is occurring because the librdkafka-dev
librdkafka binary is being referenced not the librdkafka.redist
one, but I'm confused as to why that would be happening and also I wouldn't expect that error... finally, 'produce.offset.report' is no longer set in the 1.0.x branch, but that change was made after 1.0-beta2 was cut. Look out for a new version soon.
ahh, if the librdkafka binary is not compatible with the base image used by the dotnet:2.2 image, that would explain why it's finding the librdkafka-dev version. i haven't verified this yet.
update: I've verified the librdkafka build in librdkafka.redist
referenced by confluent.kafka beta2 is compatible with the dotnet 2.2 docker image.
Description
An Exception is throw when executing application in docker and the app stops.
How to reproduce
Create an Asp.net core app and install confluent kafka. Dockerfile:
initializing the producer(Here is where the exception occurs):
Checklist
Please provide the following information: