![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
kafka+zookeeper集群
文章平均质量分 56
集群搭建
Java超神之路
这个作者很懒,什么都没留下…
展开
-
kafka分区消费计算
int numPartitionsPerConsumer = numPartitionsForTopic / consumersForTopic.size(); int consumersWithExtraPartition = numPartitionsForTopic % consumersForTopic.size(); List<TopicPartition> partitions = AbstractPartitionAssignor.partitions(topic, num.原创 2022-02-18 09:48:20 · 970 阅读 · 0 评论 -
虚拟机下搭建zookeeper + kafka集群(一)
虚拟机下搭建zookeeper + kafka集群(一) 1.主虚拟机:删掉网卡物理地址和UUID [root@localhost network-scripts]# cat ifcfg-eth0 DEVICE=eth0 HWADDR=00:0C:29:D3:5C:EC TYPE=Ethernet UUID=616a16e9-9f95-4cca-8bfe-c1cf24750ebc ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.57.原创 2021-03-28 22:13:30 · 262 阅读 · 0 评论