-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Docker Swarm with Debezium Connector #379
Comments
I'm not super familiar with swarm, but I don't think you can use global deployment mode + placement constraints (1st google result agrees https://forums.docker.com/t/docker-swarm-constraints-being-ignored/31555/2) As for connecting, in the bootstrap servers should be the list of unique Someone has recently submitted a PR - #377 (not merged) that injects the swarm IP as the OUTSIDE advertised hostname instead of the internal hostname. It might be worth trying that as well. I know nothing about debezium so can't offer any advice regarding that. However, it's probably worth checking that the standard kafka-console-producer / kafka-console-consumer tools work OK within the cluster before trying to connect with an external component. |
@sscaling Thanks for your comment, as I said above, my Kafka and Zookeeper working well with this config (mode:global and constraint I will test later, thanks for notice me ^^). I can run kafka-console-producer and kafka-console-consumer with no problem. My problem is when I bring debezium to this stack, debezium not working, kafka and zookeeper working normally. And debezium logs show as above. |
I don't think there's much more help we can provide if the docker image is working correctly. Try the PR change linked in previous comment (as that will return IP rather than hostname - could be experiencing the same issue that PR is trying to resolve). If that doesn't work try the debezium mailing list / forums / stackoverflow. |
Hi, when I set up my Swarm with this stack: Kafka(multi-broker), zookeeper, debezium. Kafka and zookeeper are working, can create topic, consumer and producer, but debezium show error: org.apache.kafka.connect.errors.ConnectException: Failed to connect to and describe Kafka cluster. Check worker's broker connection and security properties. I'm not modifying anything, just default config as docker-stack below:
When I check docker services log debezium, it show error
Can anyone show me how to fix this error, I'm new with this stack so, during a few days research, I can't figure out it. Thank you so much !
The text was updated successfully, but these errors were encountered: