kafka问题列表:
来源:互联网 发布:苹果手机称重软件 编辑:程序博客网 时间:2024/06/05 16:49
kafka问题列表:
1. kafka分区的个数根据什么设置,是不是越多越好?
2. 同一个组的两个消费者能消费同一个分区吗?
参考:This API is centered around iterators, implemented by the KafkaStream class. Each KafkaStream
represents the stream of messages from one or more partitions on one or more servers. Each stream
is used for single threaded processing, so the client can provide the number of desired streams in the create call. Thus a stream may represent the merging of
multiple server partitions (to correspond to the number of processing threads), but each partition only goes to one stream.
3.怎么创建消费者才更好:
[a].The createMessageStreams call registers the consumer for the topic, which results in rebalancing the consumer/broker assignment.
The API encourages creating many topic streams in a single call in order to minimize this rebalancing. The createMessageStreamsByFilter
call (additionally) registers watchers to discover new topics that match its filter. Note that each stream that
createMessageStreamsByFilter returns may iterate over messages from multiple topics (i.e., if multiple topics are allowed by the filter).
[b].The consumers in a group divide up the partitions as fairly as possible, each partition is consumed by exactly one consumer in a consumer group.
参考:http://kafka.apache.org/documentation/#majordesignelements Consumers and Consumer Groups
- kafka问题列表:
- kafka问题
- kafka 问题
- Kafka 参数列表和解释
- kafka关键问题解释
- kafka相关配置问题
- Kafka自动关闭问题
- Kafka维护问题总结
- kafka小问题
- kafka消息可靠性问题
- kafka消息可靠性问题
- Kafka集成问题
- kafka 出现错误问题
- kafka重复消费问题
- kafka问题分析
- Kafka问题总结
- kafka问题总结
- kafka解决的问题
- 从不同的视角看,相同的对象可以是不同的角色:
- 粒度的理解和应用:
- android线程中更新UI的三种方法 Demo
- 搭建网站---申请配置云服务器(-)
- 做正确的事,做正确的思考:如何形成一个解决方案:
- kafka问题列表:
- 当前用户对hadoop安装目录无足够权限
- Java 类加载与初始化
- java中的关键字synchronized
- Android检验下载的文件的完整性
- 为了解决一个问题,在引入一个方案时,往往会碰到这样一种情况,这个时候如果想不到更好的方案,
- 打破思考的定式:
- 我的技术博客开始啦!
- 包含了网络的软件设计,让我们必须考虑“超时”,并且在超时后作出反应: