简体   繁体   English

用于管理kafka集群的python库(主题CRUD,增加分区,重新分配,组长选举等)

[英]python library to manage kafka cluster (topics CRUD, increase partition, reassignment, leader election etc)

I searched in internet for python library to manage kafka operations like CRUD on topics, partition increment, partition reassignment, leader election etc. I didn't find anything. 我在互联网上搜索python库来管理kafka操作,例如关于主题,分区增加,分区重新分配,组长选举等的CRUD。我什么都没找到。

I know pykafka, kafka-python, but they are for creating consumers/producers, i can use kazoo for CRUD on topics, but i can't perform other operations i mentioned. 我知道pykafka,kafka-python,但是它们是用于创建消费者/生产者的,我可以对主题使用kazoo进行CRUD,但是我无法执行我提到的其他操作。 can you suggest any python library for managing kafka cluster (if available) ? 您可以建议任何用于管理kafka集群的python库吗(如果可用)?

Thanks! 谢谢!

PyKafka includes a CLI for creating topics here . PyKafka包括用于在此处创建主题的CLI。 I'm not sure what you mean by "partition increment". 我不确定“分区增量”是什么意思。 The assignment of partitions to consumers is handled internally by PyKafka's membership protocol implementations. 将分区分配给使用者是由PyKafka的成员身份协议实现内部处理的。 Leader election is, to my knowledge, not triggerable by clients. 据我所知,领导者的选举不能由客户触发。

I don't know of a python library that fully replicates the functionality of the CLI tools that come bundled with Kafka, but PyKafka comes close. 我不知道可以完全复制与Kafka捆绑在一起的CLI工具功能的python库,但是PyKafka即将来临。

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

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