I’m quite new to Camunda and am trying to setup a very simple process using Camunda 8 Self-managed and Kafka in my local MacOS environment, so that I can build on that knowledge and start creating more complex processes:
Kafka and Zookeeper are also up and running (these are not dockerised) and I can send and receive messages to the topics of interest using two dummy python programs I’ve written:
Hi @ajs1, welcome to the forums! This is not an issue with Camunda, but rather this has to do with Docker networking. Camunda is running the Connector inside a virtual container and attempting to connect to localhost:9092 from inside that container. In other words, localhost resolves to the container itself, not to your host machine that the containers are running on.
I did a quick Google search and here’s one article that may help:
I’ve tried the different options but without success. I’m running the dockerised version on a MacOS M1 machine which has special installation instructions for keycloak so I’m not sure if this is what is causing the issue.
@ajs1 - this is not a Camunda issue, or an issue with your BPMN model. This is Docker networking, which is heavily dependent on how you’ve configured your environment (how/where is Kafka running and what address+port is it listening on; what security services, like firewalls, might be blocking traffic; etc.). If you notice, the docker-compose configuration you are using is creating a virtual network; nearly all the services have this annotation:
networks:
- camunda-platform
This is what allows the services inside the containers to communicate with each other (eg, how Operate talks with Zeebe). Docker does not know how to communicate with services running outside that virtual network. One quick fix is to run Kafka inside a container and join it to the same camunda-platform network.
Thank you Nathan. That worked quite well. For those of you that are new to Camunda, want to use Kafka and are also having similar issues, the docker-compose yaml file I used is attached. The bootstrap server to use is “kafka:9092”. docker-compose_camunda_kafka_apps.yaml (17.0 KB)