hey-johnnypark / docker-kafka-zookeeper

Docker image for Kafka (0.10.x - 0.11.x - 1.x, 2.x) message broker including Zookeeper
https://hub.docker.com/r/johnnypark/kafka-zookeeper/
53 stars 47 forks source link

How to test? #7

Closed sonudavidson closed 4 years ago

sonudavidson commented 4 years ago

Hi @hey-johnnypark ,

I'm new to kafka. I don't know anything about Kafka so far but I want to use your docker to understand how kafka works. Could you please help me?

I could run the first command "docker run -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=127.0.0.1 -e NUM_PARTITIONS=10 johnnypark/kafka-zookeeper"

It seems to be running fine (at least I didn't get any errors). Now I want to test it. And I don't know how to test it.

Where/how do I run the consumer and producer?

Thanks in advance.

sonudavidson commented 4 years ago

I got it!