No provider for SASL mechanism GSSAPI error

See original GitHub issue

Description

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(IEnumerable1 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

  1. Create .net core application targeting netcoreapp 2.1
  2. Add Confluent.Kafka 0.11.3 nugget package
  3. Add docker support to the application
  4. 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:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shatlcommented, Oct 2, 2018

@srininz77 I’m having the same issue, could you share solution details please?

0reactions
gmakincommented, Jan 18, 2019

Thanks @shatl for your help!! I’ll try this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No provider for SASL mechanism GSSAPI error #567
Description The issue is similar to issue 550. An exception of type 'System.InvalidOperationException' occurred in Confluent.
Read more >
Confluent Kafka Dotnet Kerberos Support Dockerfile (No ...
InvalidOperationException : No provider for SASL mechanism GSSAPI: recompile librdkafka with libsasl2 or openssl support.
Read more >
Configuring GSSAPI
Enable GSSAPI mechanism in the server.properties file of every broker. # List of enabled mechanisms, can be more than one sasl.enabled.mechanisms=GSSAPI ...
Read more >
Librdkafka installation problem [No provider for SASL ...
Hello,. I am working on a Kafka consumer written in python using the confluent_kafka v1.5.0 library, now I have to apply Kerberos encryption ......
Read more >
What is SASL/GSSAPI?
SASL and GSSAPI are frameworks that various authentication providers can be plugged into. People wishing to use Kerberos authentication in ...
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