R
R
Rammstein0072021-02-19 18:02:56
Java
Rammstein007, 2021-02-19 18:02:56

Why, when sending messages in Kafka, if the topic of which does not exist is not written correctly, then the messages still go away and there is no error?

Please tell me how to set up a producer so that it returns an error if messages are sent to a non-existent topic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vamp, 2021-02-20
@Rammstein007

You need to set the auto.create.topics.enable parameter to false in the settings of the kafka cluster itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question