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

399 Views Asked by At

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!

1

There are 1 best solutions below

1
On

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.