What is the use of __consumer_offsets and _schema topics in Kafka?

Anveshak picture Anveshak · Sep 16, 2016 · Viewed 21.3k times · Source

After setting up the Kafka Broker cluster and creating few topics, we found that the following two topics are automatically created by Kafka:

  1. __consumer_offsets
  2. _schema

What is the importance and use of these topics ?

Answer

Natalia picture Natalia · Sep 16, 2016

__consumer_offsets is used to store information about committed offsets for each topic:partition per group of consumers (groupID). It is compacted topic, so data will be periodically compressed and only latest offsets information available.

_schema - is not a default kafka topic (at least at kafka 8,9). It is added by Confluent. See more: Confluent Schema Registry - github.com/confluentinc/schema-registry (thanks @serejja)