简体   繁体   English

Kafka流:主题分区->消费者1:1映射未发生

[英]Kafka streams: topic partitions->consumer 1:1 mapping not happening

I have written a streams application to talk to topic on cluster of 5 brokers with 10 partitions. 我已经编写了一个流应用程序,以讨论5个具有10个分区的代理群集的主题。 I have tried multiple combinations here like 10 application instances (on 10 different machines) with 1 stream thread each, 5 instances with 2 threads each. 我在这里尝试了多种组合,例如10个应用实例(在10台不同的计算机上),每个实例有1个流线程,5个实例有2个线程。 But for some reason, when I check in kafka manager, the 1:1 mapping between partition and stream thread is not happening. 但是由于某种原因,当我签入kafka管理器时,分区和流线程之间的1:1映射没有发生。 Some of the threads are picking up 2 partitions while some picking up none. 一些线程正在拾取2个分区,而有些则没有拾取。 Can you please help me with same?? 你能帮我吗? All threads are part of same group and subscribed to only one topic. 所有线程都属于同一组,并且仅订阅一个主题。 The kafka streams version we are using is 0.11.0.2 and broker version is 0.10.0.2 我们使用的kafka流版本是0.11.0.2,代理版本是0.10.0.2

Thanks for your help 谢谢你的帮助

Maybe you are hitting https://issues.apache.org/jira/browse/KAFKA-7144 -- I would recommend to upgrade to the latest versions. 也许您正在访问https://issues.apache.org/jira/browse/KAFKA-7144-我建议您升级到最新版本。

Note: you do not need to upgrade your brokers 注意:您不需要升级经纪人

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

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