简体   繁体   English

Spring Boot-Apache Kafka客户端兼容性

[英]Spring Boot - Apache Kafka Client compatibility

I cannot get Spring-Kafka to work with Kafka client versions 1.x. 我无法让Spring-Kafka与Kafka客户端版本1.x一起使用。 I get the below error when I work with higher kafka clients (> 2) 当我使用更高的kafka客户端(> 2)时出现以下错误

[Consumer clientId=adapter1-0, groupId=xxxx] Connection to node -1 could not be established. [消费者clientId = adapter1-0,groupId = xxxx]无法建立到节点-1的连接。 Broker may not be available. 经纪人可能不可用。

However the code seems to work with Kafka client version 1.1. 但是,该代码似乎可以与Kafka客户端1.1版一起使用。

I cannot find out if it is Spring issue or KAfka client version issue 我无法确定是Spring问题还是KAfka客户端版本问题

Figured it out myself. 我自己想通了。 It was an issue with Spring Boot - Spring Kafka and Kafka client compatibility. Spring Boot出现了问题-Spring Kafka和Kafka客户端兼容性。 The kafka endpoint was in 1.1 version. kafka端点为1.1版本。 So I had to use older verison of Spring boot and spring kafka client (version 2.0.7) 所以我不得不使用较早版本的Spring Boot和Spring Kafka客户端(版本2.0.7)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM