conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

Kafka is not coming up #56

Closed touseefzaki closed 5 years ago

touseefzaki commented 5 years ago

Hi, I am using Docker Toolbox for windows and trying to bring Single Zookeeper and Single Broker up. I used the following command from the source folder 'docker-compose -f zk-single-kafka-single.yml up with which i can see the servers are up but when i go to source folder by opening another docker window and try to create a topic it says 'Kafka-Topics' is a bad command. Not sure why?

My Folder structure Here are my configuration files i am KafkaFail using which you have provided in the Udemy course. From this location only i used this command 'C:\Program Files\Docker Toolbox\kafka-stack-docker-compose-master'. Please let me know what i am doing wrong.

simplesteph commented 5 years ago

Just add the kafka-topics.bat (you're on windows) to your path and use that

touseefzaki commented 5 years ago

Just add the kafka-topics.bat (you're on windows) to your path and use that

Thanks Stephane for the response

I tried doing that also. The server comes up with this command 'docker-compose -f zk-single-kafka-single.yml up'

Now the problem is with create and other kafka commands... I have basically done the following after starting the server

1) Tried to create topic using 'kafka-topics.bat --zookeeper 192.168.99.100:2181 --create --topic test --partitions 3 --replication-factor 1' command

2) Also tried using 'kafka-topics.bat --zookeeper 127.0.0.1:2181 --create --topic test --partitions 3 --replication-factor 1'

In both of these cases i get the same message command not found. It looks strange to me KafkaFailedToStart