我想使用Spring Kafka将事件处理到本地数据库中,并将偏移量存储在数据库本身中,如“在Kafka之外存储偏移量”下的https://kafka.apache.org/25/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html中所述。 Spring Kafka (带有KafkaListener)似乎总是提交偏移量(因此需要group.id),有没有办法完全禁用提交,允许在没有组的情况下进行侦听?
spring-kafka : from 2.7.4 to 2.7.7kafka-clientscommon/kafka/utils/Time;Lscala/Option;/Lscala/collection/Seq;)V 根据spring docs https://spring.io/projects/spring-kafkadependency&
一旦我将@EmbeddedKafka添加到集成测试中,我就会看到以下错误:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedKafka': Invocation of init method failed; nested exception is kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection whi