org.apache.kafka.common.errors.UnsupportedVersionException: Creating topics with default partitions/replication factor are only supported in CreateTopicRequest version 4+. #2675
-
Team, I am using Kafka 2.13 and I get the below error while creating the topic. org.apache.kafka.common.errors.UnsupportedVersionException: Creating topics with default partitions/replication factor are only supported in CreateTopicRequest version 4+. I went through https://stackoverflow.com/questions/67513239/failed-to-create-topics-exception-norg-apache-kafka-common-errors-unsupport and understood that the replication factor should be 1 or more in lieu of -1 In my case I do not use Spring-cloud stream. I am just using Kafka (Producer/Consumer). So kindly advise on which parameter should I change? Any leads are much appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is no such version as 2.13 - that looks like the scala version (that the broker is compiled against). This repo is for Spring related discussions; if you are using That said, it sounds like your broker is < 2.4 and you are not setting a replication factor when creating topics. You need to show your code/configuration. |
Beta Was this translation helpful? Give feedback.
I think I need to use autoCreateTopicsWith in RetryTopicConfigurationBuilder.
Let me give it a try.