Page
Viewing topic information

You can also use the following kcat command to view broker and topic information. Remember to replace the bootstrap server and credentials as described in previous examples.
$ kcat -b $BOOTSTRAP_SERVER \
-X security.protocol=SASL_SSL \
-X sasl.mechanisms=PLAIN \
-X sasl.username="$CLIENT_ID" \
-X sasl.password="$CLIENT_SECRET" -L
The output will resemble the following:
Metadata for all topics (from broker -1: sasl_ssl://game-kafka-c--ungpmsi-k-ft-vnpg.bf2.kafka.rhcloud.com:443/bootstrap):
1 brokers:
broker 0 at broker-0-game-kafka-c--ungpmsi-k-ft-vnpg.bf2.kafka.rhcloud.com:443 (controller)
1 topic:
topic "songs" with 1 partitions:
partition 0, leader 0, replicas: 0, isrs: 0
This output explains that the single partition of the Songs topic is replicated across all three brokers, and that broker 1 is the leader of the partition. The replicas are populated by following the leader state.