spring kafka:由于致命错误,尝试加入组失败:配置的groupid无效

chy5wohz  于 2021-06-07  发布在  Kafka
关注(0)|答案(1)|浏览(1228)

我正在编写一个Kafka监听器,当我运行它时,它会给我很多错误,比如:

2018-03-12 14:55:17.866  INFO 19440 --- [ntainer#0-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-1, groupId=] (Re-)joining group
2018-03-12 14:55:17.866 ERROR 19440 --- [ntainer#1-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=] Attempt to join group failed due to fatal error: The configured groupId is invalid

这是因为使用者配置设置不正确吗?

rseugnpd

rseugnpd1#

您缺少名为的属性:

`spring.kafka.consumer.group-id=my-fancy-consumer-group-id`

相关问题