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.

No such configuration property: "sasl.kerberos.keytab"

See original GitHub issue

Hi, I’m new here. I’ve been trying to apply the MIT Kerberos authentication with the use of a keytab.

Below is my code (in .NET).

public static void Main() { string topicName = “test-topic”; var producerConfig = new ProducerConfig { BootstrapServers = "bootstrapServer ", SecurityProtocol = SecurityProtocolType.Sasl_Ssl, SaslMechanism = SaslMechanismType.Gssapi, SaslKerberosServiceName = “ksfka”, SaslKerberosPrincipal = “kafka@DOMAIN.COM”, SaslKerberosKeytab = @“D:\kafka.keytab”, SaslKerberosKinitCmd = @“kinit -k -t D:\kafka.keytab kafka@DOMAIN.COM” };

using (var producer = new Producer<Null, string>(producerConfig)) { Console.WriteLine($“{producer.Name} producing on {topicName}. q to exit.”); string text=“123”; while ((text = Console.ReadLine()) != “q”) { var deliveryReport = producer.ProduceAsync(topicName, new Message<Null, string> { Value = text }); deliveryReport.ContinueWith(task => { Console.WriteLine($“Partition: {task.Result.Partition}, Offset: {task.Result.Offset}, Message: {text}”); }); } } }

The following situation has occurred.

System.InvalidOperationException HResult=0x80131509 Message=No such configuration property: “sasl.kerberos.keytab” Source=Confluent.Kafka StackTrace: Confluent.Kafka.Impl.SafeConfigHandle.Set(String name, String value) Confluent.Kafka.Producer.<>c__DisplayClass33_0.<.ctor>b__6(KeyValuePair2 kvp) System.Collections.Generic.List1.ForEach(Action1 action) Confluent.Kafka.Producer..ctor(IEnumerable1 config) Confluent.Kafka.Producer2..ctor(IEnumerable1 config, SerializerGenerator1 keySerializerGenerator, SerializerGenerator1 valueSerializerGenerator) Confluent.Kafka.Producer2..ctor(IEnumerable1 config, Serializer1 keySerializer, Serializer1 valueSerializer) DotNetExample.Main() in D:\DoNetKafka\Program.cs:line 21

How can I solve it?

Checklist

Please provide the following information:

  • Confluent.Kafka nuget version:1.0.0-beta
  • Apache Kafka version: cloudera kafka 3.1.0
  • Client configuration:
  • Operating system:windows 10 build 1803
  • Provide logs (with “debug” : “…” as necessary in configuration)
  • Provide broker log excerpts
  • Critical issue

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mathsigitcommented, Oct 18, 2018

Hi @mhowlett , I have the same issue ,and could you please describe more detail about how to use credentials of the logged in user on Windows? Thanks a lot.

1reaction
mhowlettcommented, Oct 17, 2018

This config property is apparently only supported on the linux/osx builds of librdkafka. On windows, I believe we only support credentials of the logged in user.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such configuration property: "sasl.kerberos.kinit.cmd"
1 Answer 1 ... On Windows, librdkafka only supports GSSAPI/Kerberos through the native windows SSPI - providing authentication using the current ...
Read more >
Configuration properties - librdkafka
This configuration property is only used as a variable in sasl.kerberos.kinit.cmd as ... -t "%{sasl.kerberos.keytab}" . Type: string.
Read more >
Connecting to Kafka using SSL with Kerberos authentication
The JAAS configuration uses the Kerberos keytab and principal. Procedure. Add the following properties to the output section of the CaseEventEmitter.json file ...
Read more >
No such configuration property: "sasl.kerberos.kinit.cmd"
I have been stuck with this issue for over a day now. can someone kindly help me with this?
Read more >
Connecting to a Secure Kafka | Conduktor Docs
General Idea​. Conduktor leverages the default Apache Kafka Java Clients, and therefore we use the same configuration properties.
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