incubator-kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Ormsbee (Commented) (JIRA)" <>
Subject [jira] [Commented] (KAFKA-223) Add metadata requests to Kafka broker
Date Tue, 06 Dec 2011 18:03:40 GMT


David Ormsbee commented on KAFKA-223:

>From Neha's email:

Today, we don't have such APIs. But I was thinking we can have something
similar to the 4-letter commands in zookeeper.
For example,

echo topics | nc broker-host broker-port      (Returns all topics with
number of partitions on each broker)
echo srvr | nc broker-host broker-port         (Returns basic broker stats
like version, number of topics etc)

> Add metadata requests to Kafka broker
> -------------------------------------
>                 Key: KAFKA-223
>                 URL:
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients, core
>            Reporter: David Ormsbee
>            Priority: Minor
>              Labels: features
> It would be useful to be able to query metadata from Kafka for the purposes of monitoring
and discovery:
> 1. Version: Just a quick way to get the broker version so that we know not to send it
a version of a request or response that it can't handle.
> 2. Topic information: Return the default number of partitions per topic, a list of all
topics, number of partitions per topic if there are overrides, and start/end offsets for those
topics (assuming it's cheap to do so). This would allow Consumers and Producers to discover
topics and partitions on a single broker without involving ZooKeeper, and would also make
it easier to know how many partitions can be sent to when making a new topic with a ZK-aware
> Discussed in thread:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message