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

In this docker image, new topics are not created automatically. #9

Closed glazkovalex closed 4 months ago

glazkovalex commented 3 years ago

In this docker image, new topics are not created automatically. How do I set auto.create.topics.enable=true in this docker image so that new topics are created automatically?

glazkovalex commented 3 years ago

If I set the environment variable "AUTO_CREATE_TOPICS=true", then the string "\nauto.create.topics.enable=true" appears in $KAFKA_HOME/config/server.properties. Maybe if you remove the "\n" at the beginning, this option will work?

hey-johnnypark commented 3 years ago

Hi, yes I am happy for a pull request , thanks for spotting.

Sent from my iPhone

On 23 Apr 2021, at 20:15, glazkovalex @.***> wrote:

 If I set the environment variable "AUTO_CREATE_TOPICS=true", then the string "\nauto.create.topics.enable=true" appears in $KAFKA_HOME/config/server.properties. Maybe if you remove the "\n" at the beginning, this option will work?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

obalunenko commented 4 months ago

Hi @glazkovalex This repository is not maintained. You can use this one: https://github.com/obalunenko/docker-kafka-zookeeper . It already has pre-build images for all Kafka with zookeeper versions published on the official site https://kafka.apache.org/downloads

glazkovalex commented 4 months ago

Thank you, @belonenko! I switched to the container: confluentinc/cp-kafka .