Using Kafka with the Java lib, I want to disable the automatic creation of topic (if it doesn't already exist).
Some sites says I should put auto.create.topics.enable to false, but this is not recognized in Java.
15:11:56.962 [main] WARN o.a.k.c.consumer.ConsumerConfig - The configuration 'auto.create.topics.enable' was supplied but isn't a known config.
Currently I put it in my docker-compose as environment variable:
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
This works, but I'd like to manag it from Java by user.
Is this possible?