question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception "Failed to load the librdkafka native library" when building consumer using 1.0.0-beta3

See original GitHub issue

Description

Getting the following exception when building a consumer using 1.0.0-beta3:

Unhandled Exception: System.DllNotFoundException: Failed to load the librdkafka native library. at Confluent.Kafka.Impl.Librdkafka.Initialize(String userSpecifiedPath) at Confluent.Kafka.Consumer2..ctor(ConsumerBuilder2 builder) at Confluent.Kafka.ConsumerBuilder2.Build() at Confluent.Kafka.Examples.ConsumerExample.Program.Run_Consume(String brokerList, List1 topics, CancellationToken cancellationToken) in /src/confluent-kafka-dotnet/examples/Consumer/Program.cs:line 60 at Confluent.Kafka.Examples.ConsumerExample.Program.Main(String[] args) in /src/confluent-kafka-dotnet/examples/Consumer/Program.cs:line 192 Abort trap: 6

How to reproduce

Run the Consumer example console app using 1.0.0-beta3. (https://github.com/confluentinc/confluent-kafka-dotnet/tree/master/examples/Consumer)

If I run the Consumer example app with from the 1.0.0-beta2 release, it works without error.

Checklist

Please provide the following information:

  • Confluent.Kafka nuget version: 1.0.0-beta3
  • Apache Kafka version:
  • Client configuration:
  • Operating system: OSX 10.13.6 (17G65)
  • Provide logs (with “debug” : “…” as necessary in configuration)
  • Provide broker log excerpts
  • Critical issue

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
ratri-gitcommented, Dec 2, 2019

Use this in dockerfile , it was installed and worked fine.

FROM mcr.microsoft.com/dotnet/core/runtime:3.0 AS runtime
RUN apt-get update -y
RUN apt-get install -y librdkafka-dev

If you have any errors i will share my full dockerfile

4reactions
edenhillcommented, Feb 13, 2019

The workaround for now is brew install zstd on osx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnose `DllNotFoundException` for native library in a ...
I want to run this app in a docker container based on an alpine image, built for the linux-arm64 platform. At runtime I...
Read more >
Class Library | Confluent.Kafka
Methods that relate to the native librdkafka library itself (do not ... librdkafka is loaded automatically on first use of a Producer or...
Read more >
Kafka Confluence librdkafka.dll where to put?
I create a C# extension for producer Kafka Confluence. When i build and then publish, it is okay. However in the run time,...
Read more >
confluent-kafka-dotnet
If you are on a different platform, you may need to build librdkafka manually (or acquire it via other means) and load it...
Read more >
homebrew-core
a2ps 4.15.5 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found