Ad
Bitnami Kafka/Zookeper Docker-compose Gets Me : KeeperErrorCode = NoAuth For /consumers
when trying to start a zookeeper and kafka cluster with this docker-compose.yml
services:
zookeeper1:
image: 'bitnami/zookeeper:latest'
ports:
- '2181:2181'
- '2888:2888'
- '3888:3888'
- '8080:8080'
volumes:
- zoo-persistence1:/bitnami/zookeeper
environment:
- ZOO_SERVER_ID=1
- ZOO_SERVERS=zookeeper1:2888:3888
- ZOO_ENABLE_AUTH=yes
- ZOO_SERVER_USERS=kafka
- ZOO_SERVER_PASSWORDS=password
- ZOO_CLIENT_USER=kafka
- ZOO_CLIENT_PASSWORD=password
kafka1:
image: 'bitnami/kafka:latest'
ports:
- "9092:9092"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper1:2181
- KAFKA_CFG_BROKER_ID=1
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_ZOOKEEPER_USER=kafka
- KAFKA_ZOOKEEPER_PASSWORD=password
- KAFKA_CLIENT_USERS=kafka
- KAFKA_CLIENT_PASSWORDS=password
volumes:
- kafka_1_data:/bitnami/kafka
depends_on:
- zookeeper1
volumes:
zoo-persistence1:
kafka_1_data:
I receive the following exception:
[2022-08-03 12:12:26,260] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
2022-08-03T12:12:26.263406700Z org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /config
actually I don´t get it. Something with the users. But which attribute is wrong or missing. The documentation is not of great help here
see : https://hub.docker.com/r/bitnami/zookeeper, https://hub.docker.com/r/bitnami/kafka
Michael
Ad
Answer
Found it : kafka containers are missing the - KAFKA_ZOOKEEPER_PROTOCOL=SASL environment
Ad
source: stackoverflow.com
Related Questions
- → Docker containers clustering
- → Connection refused when running October artisan command with docker exec in Jenkins
- → AngularJS doesn't work with third party pre-render service
- → checking query arguments for loopback ACLs to allow `find`ing the user's data only
- → Redirect users to different domains of the same web application according to their ip address location
- → Splitting up a Rails and React app into separate Docker containers?
- → local shopify app development with docker: Request origin could not be verified
- → Slow response times: Laravel 5.2 in Docker container
- → How to cache node_modules on Docker build?
- → How to use host network while linking to a container?
- → What is a good way to run a large number of mocha tests at once from the command line?
- → Bitcoin how to create a new account via RPC
- → Git clone not working with npm
Ad