HomeAdvisor / Kafdrop

Kafka UI and Monitoring Tool
Apache License 2.0
398 stars 163 forks source link

Unable to view messages when using kafdrop as a docker container #25

Closed sethishi closed 6 years ago

sethishi commented 6 years ago

It is more of a question rather than an issue.

I am trying to use kafdrop to view messages posted on local kafka container. Running both the containers in a docker network using the below run commands.

docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 --net kafka-network --name test-kafka ts-kafka:1.0.0

docker run -d -p 9000:9000 -e ZOOKEEPER_CONNECT=test-kafka:2181 --net kafka-network --name kafka-ui kafdrop

I am able to connect kafdrop to zookeeper as I can see the topics but cant view any messages that are available on the topic. Using the kafka-console-consumer.sh I can see the messages. I ran kafdrop using jar file and it worked fine for me. Not sure what I am missing here.

Thanks