I am having issue with Kafka in my repl:
My yml file including kafka and zookeeper is this:
zookeeper:
image: confluentinc/cp-zookeeper
restart: unless-stopped
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
container_name: dev_zookeeper_1
kafka:
image: confluentinc/cp-kafka
restart: unless-stopped
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:29092,PLAINTEXT_HOST://0.0.0.0:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_REPLICA_FETCH_MAX_BYTES: 30971520
KAFKA_MESSAGE_MAX_BYTES: 30971520
KAFKA_LOG_RETENTION_HOURS: 1440
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- kafka-data:/kafka
container_name: dev_kafka_1
And I have the M1 Mac, so it is Arm64 architecture. Any help on this issue will be much appreciated