-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Create AdminClient #935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just to remind, there was a ticket #857 for KIP-4 and Create/Delete API. |
Oh, I'd missed that, thanks! |
Reopening to track the As part of this, it'd be nice if there was a simple API for returning topic metadata (without having to consume those topics) such as broker offsets, consumer group offsets, and probably the calculated consumer lag. |
What about the actual interface for AdminClient? Should we use something like Scala's AdminClient as a reference? |
I haven't looked at the Scala admin client, but there has been a fair bit of chatter recently on the Kafka dev list re: what the new Java AdminClient interface should look like. I think, but haven't confirmed that the Java one and the Scala one are different. |
By the way, seems like apache/kafka#2472 was merged into Java Client. It's basically what the ticket is about, right? |
|
I was wondering if someone has made a start on this? I started looking at it myself, but I'm not that familiar with the kafka-python code yet, to start it decently from scratch. For people who are interrested in just creating topics, made a quick and dirty script so far: https://gist.github.com/pvanderlinden/3c9b8fc58e07afe2a205d906ba86d9d0 |
I did not look into it that much, but here's links to Java's implementation and javadocs: https://github.com/apache/kafka/tree/0.11.0.0/clients/src/main/java/org/apache/kafka/clients/admin It's quite extensive, they run a background thread that does send/receive with NetworkClient (basically our |
I was planning to work on this when I had more time, but I won't be able to. Unfortunately kafka-python doesn't work until #948 is implemented, and I currently don't have the time to spend on implementing that myself (which by the looks of it is pretty big). |
Would it make sense to have a thin abstraction for creating topics using CreateTopicRequest for now? I am implementing something like this to create topics using CreateTopicRequest |
What's the status of this issue? Progress being made? |
I haven't seen any PRs for it. If you want to take a stab, it would be fantastic! |
we wrote an admin_client a while back. |
See #1540 |
Would like some feedback on pull request above. And, well, for it to be accepted. I didn't make python classes for the return results. Perhaps that would be desirable? Also, there are a bunch of protocol structs seemingly missing in kafka-python, so not all of the admin interface could be implemented. |
Closing, as the initial interface is merged in #1540 thanks to @llamahunter's great work |
Uh oh!
There was an error while loading. Please reload this page.
This is to track creating an AdminClient to mirror the Java AdminClient mentioned in KIP-4
What are your plans on this front?
Are you waiting til the Java crew releases their AdminClient (as mentioned in KIP-4)? Or ready to start this sooner and then cleanup the implementation to spec once they get to it?
I ask because we could use this relatively soon, right now we have a python script calling subprocess to call shell commands and it's pretty janky. But I suspect the Java AdminClient won't actually be released for a bit yet...
The text was updated successfully, but these errors were encountered: