No provider for SASL mechanism GSSAPI error
See original GitHub issueDescription
I get the following error when I try to create the producer in a .net core 2.1 console application running in a docker linux container.
**An exception of type ‘System.InvalidOperationException’ occurred in Confluent.Kafka.dll but was not handled in user code: ‘No provider for SASL mechanism GSSAPI: recompile librdkafka with libsasl2 or openssl support. Current build options: PLAIN SASL_SCRAM’ Stack trace:
at Confluent.Kafka.Impl.SafeKafkaHandle.Create(RdKafkaType type, IntPtr config) at Confluent.Kafka.Producer…ctor(IEnumerable
1 config, Boolean manualPoll, Boolean disableDeliveryReports) at Confluent.Kafka.Producer2…ctor(IEnumerable1 config, ISerializer1 keySerializer, ISerializer`1 valueSerializer, Boolean manualPoll, Boolean disableDeliveryReports)**
How to reproduce
Using Visual studio 2017
- Create .net core application targeting netcoreapp 2.1
- Add Confluent.Kafka 0.11.3 nugget package
- Add docker support to the application
- Create Kafka producer using the following config:
var config = new Dictionary<string, object> { //set default config { “bootstrap.servers”, edmBrokers}, { “batch.num.messages”, 20 }, { “acks”, “all” }, { “debug”,“all” },
//SASL:
{ "security.protocol","SASL_SSL" },
{ "sasl.mechanisms", "GSSAPI" },
{ "sasl.kerberos.service.name", "kafka" },
{ "sasl.kerberos.principal","kafka"}
};
Checklist
Please provide the following information:
- Confluent.Kafka nuget version: 0.11.3
- Apache Kafka version: 1.0.0
- Client configuration:
- Operating system: Debian GNU/Linux 9 (stretch)
- Provide logs (with “debug” : “…” as necessary in configuration)
- Provide broker log excerpts
- Critical issue
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (3 by maintainers)
Top Related StackOverflow Question
@srininz77 I’m having the same issue, could you share solution details please?
Thanks @shatl for your help!! I’ll try this.