You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tried with both :
.\kafka-console-producer.bat --broker-list 0.0.0.0:9092 --topic topicTest
and
.\kafka-console-producer.bat --broker-list localhost:9092 --topic topicTest
I'm trying to produce messages to a kafka container and it seems to fail on produce.
connection seems OK.
docker-compose.yml
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
build: .
ports:
- "9092:9092"
- "9093:9093"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_LISTENERS: INTERNAL://kafka:9093,EXTERNAL://127.0.0.1:9092
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9093,EXTERNAL://127.0.0.1:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
tried with both :
.\kafka-console-producer.bat --broker-list 0.0.0.0:9092 --topic topicTest
and
.\kafka-console-producer.bat --broker-list localhost:9092 --topic topicTest
netstat shows listening on the port.
.\kafka-topics.bat --describe --zookeeper localhost:2181 --topic topicTest Topic:topicTest PartitionCount:1 ReplicationFactor:1 Configs:
Topic: topicTest Partition: 0 Leader: 1001 Replicas: 1001 Isr: 1001
any ideas ?
The text was updated successfully, but these errors were encountered: