简体   繁体   中英

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.

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. can you suggest any python library for managing kafka cluster (if available) ?

Thanks!

PyKafka includes a CLI for creating topics here . 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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