I use https://github.com/bitnami/bitnami-docker-kafka . File docker-compose.yml
on Windows 10 pro x64, with Docker for Windows 4.8.2 (79419)
version: "2"
services:
zookeeper:
image: docker.io/bitnami/zookeeper:3.8
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: docker.io/bitnami/kafka:3.2
ports:
- "9092:9092"
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
then
docker-compose up
error
java.io.IOException: Len error. A message from /172.19.0.1:36208 with advertised length of 1195725856 is either a malformed message or too large to process (length is
How to fix it?
1条答案
按热度按时间ha5z0ras1#
将
docker-compose.yml
移动到短文件夹路径(例如D:\
)。