GitHub user cmccabe opened a pull request:
https://github.com/apache/kafka/pull/2472
KAFKA-3265: Create Java Admin Client
Create a Java AdminClient as described in KAFKA-3265 and KIP-4.
Currently it supports getAllGroups, getAllBrokerVersions, deleteTopics, and
createTopics. For each API, it uses the associated Kafka requests rather than
going through ZooKeeper.
It is called AdministrativeClient to avoid confusing with the
scala.kafka.admin.AdminClient class.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cmccabe/kafka KAFKA-3265
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2472.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2472
----
commit f8d425863067614de2644b0260ac9c5c51234c00
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-27T23:25:42Z
Add AdminClient, AdminClientConfig
commit 11c00df0e160493cba318d1ba78698b79ef9f40e
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-28T00:25:57Z
Add AdminClientsTest.scala
commit 4022cb19a5ac27f5d1140878bad5e58b42301229
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-28T00:27:18Z
AdminClient: metricGrpPrefix should be "adminclient"
commit ebafe59fcb29d2a9bacc8e8a4cfd8a95d1edd027
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-30T21:29:08Z
Implement AdminClient#createTopics, AdminClient#deleteTopics
commit 28c2c272eba66e8f95fb8bafd94b83a85cd0e24e
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-31T01:51:49Z
AdminClient -> AdministrativeClient
commit 50443b6e23790b6747dd2c16fd1d210d66ed9768
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-31T17:56:10Z
Add Try
commit 146a2e05e762669a0480c9b52e4cd298b48fe42d
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-31T17:57:29Z
Implement getAllBrokerVersions
commit 090d4b1b62086182caef6404d0852a151982ccba
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-31T18:29:30Z
fixups
commit 969fdb75dc5aaffb9a2a7547f8f28af9fe9930e9
Author: Colin P. Mccabe <[email protected]>
Date: 2017-01-31T18:38:20Z
style changes
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---