docker-kafka-zookeeper icon indicating copy to clipboard operation
docker-kafka-zookeeper copied to clipboard

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

Open glazkovalex opened this issue 3 years ago • 2 comments

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 avatar Apr 23 '21 18:04 glazkovalex

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?

glazkovalex avatar Apr 23 '21 19:04 glazkovalex

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.

hey-johnnypark avatar Apr 23 '21 19:04 hey-johnnypark

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

obalunenko avatar May 17 '24 15:05 obalunenko

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

glazkovalex avatar May 18 '24 10:05 glazkovalex