【发布时间】:2021-10-24 11:35:43
【问题描述】:
我们有一个基于 Java 的 kafka 流应用程序,它使用 helm 图表部署到 kubernetes 集群。为了扩大部署,我们使用副本集的 Kubernetes 选项,它将运行应用程序的多个实例。但是运行应用程序的多个实例会导致 Pod 崩溃,并出现以下错误。
Exception in thread "****-StreamThread-1" org.apache.kafka.common.errors.FencedInstanceIdException: The broker rejected this static consumer since another consumer with the same group.instance.id has registered with a different member.id.
【问题讨论】:
-
如果您可以显示应用程序的
StreamsConfig/client 属性将会很有用
标签: kubernetes apache-kafka kubernetes-helm apache-kafka-streams kubernetes-pod