Exception "Failed to load the librdkafka native library" when building consumer using 1.0.0-beta3
See original GitHub issueDescription
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(ConsumerBuilder
2 builder)
at Confluent.Kafka.ConsumerBuilder2.Build() at Confluent.Kafka.Examples.ConsumerExample.Program.Run_Consume(String brokerList, List
1 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:
- Created 5 years ago
- Comments:23 (5 by maintainers)
Top GitHub Comments
Use this in dockerfile , it was installed and worked fine.
If you have any errors i will share my full dockerfile
The workaround for now is
brew install zstd
on osx