Deploying MySQL connector w/ strimzi (kubernetes) results in CrashLoopBackOff with no logs

342 views
Skip to first unread message

sai...@gmail.com

unread,
Apr 26, 2019, 3:55:38 PM4/26/19
to debezium
I'm currently attempting to deploy an instance of Kafka connect w/ the MySQL debezium plugin. I've got a kafka cluster running on k8s using strimzi. I've chosen to use the strimzi connect image and extend it to include the debezium MySQL connector jars as outlined here: https://strimzi.io/docs/master/#using-kafka-connect-with-plug-ins-str . 

My Dockerfile for the connect image (simply adding the connector to the plugins): 

FROM strimzi/kafka:latest-kafka-2.2.0
USER root:root
COPY ./debezium-connector-mysql/ /opt/kafka/plugins/
USER kafka:kafka

I've followed the steps here and changed the connect image to be the custom image with the added debezium connector with no success... Has anyone here had success deploying debezium with strimzi?

sai...@gmail.com

unread,
Apr 26, 2019, 4:37:47 PM4/26/19
to debezium
I'm also wondering if it would be a viable route to use the provided debezium/connect image instead of strimzi's connect. I see the debezium/connect image requires a service named zookeeper and a service named kafka; however, with strimzi the names are suffixed i.e (my-cluster-zookeeper-client)... Is there currently a way to change the expected service names for the debezium/connect image?

gunnar....@googlemail.com

unread,
Apr 29, 2019, 2:41:23 AM4/29/19
to debezium
Hi,

We've instructions for setting up Debezium via Strimzi here:


This one is based on OpenShift, using the s2i process. As far as the Debezium images are concerned, you can override the relevant settings using environment variables, e.g. BOOTSTRAP_SERVERS (https://github.com/debezium/docker-images/tree/master/connect-base/0.9#bootstrap_servers).

 I'll try and get someone from the Strimzi team to answer here, too. 

--Gunnar

Jakub Scholz

unread,
Apr 29, 2019, 2:47:18 AM4/29/19
to debezium
Hi,

It might be a bug in the Strimzi documentation. Could you try:

USER 1001

instead of

USER kafka:kafka

Thanks & Regards
Jakub

sincy sebastian

unread,
Jun 3, 2019, 1:25:47 AM6/3/19
to debezium

I could run Debezium connectors in Kubernetes with Strimzi. Details are in my blog

Gunnar Morling

unread,
Jun 5, 2019, 12:14:03 PM6/5/19
to debezium
That's a great write-up, Sincy! Thanks a lot for sharing it.

--Gunnar
Reply all
Reply to author
Forward
0 new messages