Kafka Zookeeperless, implement RAFT protocol for self maintaining clustership
You need to set advertised.listeners (or KAFKA_ADVERTISED_LISTENERS if you’re using Docker images) to the external address (host/IP) so that clients can correctly connect to it. Otherwise they’ll try to connect to the internal host address–and if that’s not reachable then problems ensue.
- npsables/kraft-x-docker:3.2.3
- docker run -p 9092:9092 --name kraft npsables/kraft-x-docker:3.2.3
- cd compose
- docker-compose -f docker-compose.example.yaml up