Sanjay
Sanjay

Reputation: 1108

__consumer_offsets topic showing different configuration when describe with zookeeper and bootstrap-server

Kafka version - 2.4.0 I am using kafka-topics.sh script to describe __consumer_offsets topic with below 2 options

Both of them showing different replication factor and configuration of the topic..

Could any one help here to understand why this behaviors. Many thanks for your help.

When using --bootstrap-server

./kafka-topics.sh --bootstrap-server kafka-broker:9092 --describe --topic __consumer_offsets

Topic: __consumer_offsets       PartitionCount: 50      ReplicationFactor: 3    Configs: compression.type=producer,min.insync.replicas=1,cleanup.policy=compact,segment.bytes=104857600,retention.ms=60000,message.format.version=0.10.2-IV0,file.delete.delay.ms=30000,unclean.leader.election.enable=true,retention.bytes=132070253,delete.retention.ms=30000,segment.ms=3600000

When using --zookeeper

./kafka-topics.sh --zookeeper zookeeper-host:2181/asrkafka --describe --topic __consumer_offsets

Topic: __consumer_offsets       PartitionCount: 50      ReplicationFactor: 3    Configs: compression.type=producer,cleanup.policy=compact,segment.bytes=104857600

Upvotes: 0

Views: 143

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191725

The non-Zookeeper option uses the AdminClient API which pulls additional topic metadata that is stored in the broker settings rather than only in Zookeeper.

Upvotes: 1

Related Questions