I cannot get Spring-Kafka to work with Kafka client versions 1.x. I get the below error when I work with higher kafka clients (> 2)
[Consumer clientId=adapter1-0, groupId=xxxx] Connection to node -1 could not be established. Broker may not be available.
However the code seems to work with Kafka client version 1.1.
I cannot find out if it is Spring issue or KAfka client version issue
Figured it out myself. It was an issue with Spring Boot - Spring Kafka and Kafka client compatibility. The kafka endpoint was in 1.1 version. So I had to use older verison of Spring boot and spring kafka client (version 2.0.7)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.