Jon Slusher
12/10/2025, 7:15 PMkafka source connector (using PyFlink) to our Kafka cluster using SASL_SSL and SCRAM-SHA-512.
β’ Can anyone at least confirm that this should be possible?
β’ I have some DEBUG logs to share that to me definitely point to the taskManager being the culprit. I see in the logs the jobManager is definitely connecting successfully to my Kafka brokers because it can see the topic I and partitions want to source. A taskManager is spawned shortly afterwards and that's what seems to file.
β’ I'm using Flink 1.20.3, and the Flink operator in Kubernetes to manage the job
β’ I'll post the configuration and a link to a condensed and redacted Gist of the DEBUG logs I captured for my connector in a threadJon Slusher
12/10/2025, 7:17 PMkafka source configuration:
CREATE TABLE IF NOT EXISTS my_table (
id BIGINT NOT NULL,
release_id BIGINT,
PRIMARY KEY (id) NOT ENFORCED
) WITH (
'connector' = 'kafka',
'topic' = 'debezium.sdlc-example.example.my_table',
'properties.bootstrap.servers' = '{BOOTSTRAP}',
'properties.security.protocol' = 'SASL_SSL',
'properties.sasl.mechanism' = 'SCRAM-SHA-512',
'properties.sasl.jaas.config' = 'org.apache.flink.kafka.shaded.org.apache.kafka.common.security.scram.ScramLoginModule required username=\"{KAFKA_SASL_USERNAME}\" password=\"{KAFKA_SASL_PASSWORD}\";',
'properties.group.id' = 'flink.collection-aggregator',
'format' = 'debezium-avro-confluent',
'debezium-avro-confluent.url' = '{AVRO_REGISTRY}',
'scan.startup.mode' = 'earliest-offset'
);
""")H.P. Grahsl
12/10/2025, 8:00 PMH.P. Grahsl
12/10/2025, 8:01 PMJaehyeon Kim
12/10/2025, 8:05 PMJon Slusher
12/10/2025, 8:10 PMupsert-kafka connector that wasn't working, and it's because I never set authentication for it π€¦ββοΈ :
CREATE TABLE IF NOT EXISTS my_count (
example_id BIGINT,
example_count BIGINT,
PRIMARY KEY (release_id) NOT ENFORCED
) WITH (
'connector' = 'upsert-kafka',
'topic' = 'flink.my_count_topic',
'properties.bootstrap.servers' = '{BOOTSTRAP}',
'properties.security.protocol' = 'SASL_SSL',
'properties.sasl.mechanism' = 'SCRAM-SHA-512',
'properties.sasl.jaas.config' = 'org.apache.flink.kafka.shaded.org.apache.kafka.common.security.scram.ScramLoginModule required username=\"{KAFKA_SASL_USERNAME}\" password=\"{KAFKA_SASL_PASSWORD}\";',
'key.format' = 'json',
'value.format' = 'json'
);H.P. Grahsl
12/10/2025, 8:10 PMJon Slusher
12/10/2025, 8:10 PMH.P. Grahsl
12/10/2025, 8:11 PM