confluentinc / cp-helm-charts

The Confluent Platform Helm charts enable you to deploy Confluent Platform services on Kubernetes for development, test, and proof of concept environments.
https://cnfl.io/getting-started-kafka-kubernetes
Apache License 2.0
784 stars 841 forks source link

Kafka Connect: can not use SASL for producer or consumer #347

Open icecold21 opened 4 years ago

icecold21 commented 4 years ago

How exactly we pass SASL configuration into the inside of the container for the consumer and producer, I am trying to use Kafka connect inside my k8s cluster with confluent cloud-hosted Kafka. Stuck when configuring SASL config for the producer and consumer. I got the producer working already.

I tried using the overrides block and it says: [2019-11-13 17:01:33,116] WARN The configuration 'producer.sasl.jaas.config' was supplied but isn't a known config. (org.apache.kafka.clients.admin.AdminClientConfig) [2019-11-13 17:01:33,116] WARN The configuration 'producer.sasl.mechanism' was supplied but isn't a known config. (org.apache.kafka.clients.admin.AdminClientConfig)

OneCricketeer commented 4 years ago

Those are just warnings.

AdminClientConfig isn't a producer so it doesn't recognize producer.* properties.

You would need to look for ProducerConfig in the logs to see if your SASL configs are being set correctly.

Janus88 commented 3 years ago

Can anyone give me a sample values.yaml for this use case? I try to reach the same thing, but I got stuck with this error:

image