A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/confluentinc/librdkafka/wiki/Consumer-offset-management below:

Consumer offset management · confluentinc/librdkafka Wiki · GitHub

librdkafka currently supports two consumer offset management methods:

Enabling offset management

Offset management is configured through topic configuration properties and enabled by passing start_offset as RD_KAFKA_OFFSET_STORED to rd_kafka_consume_start().

The various rdkafka tools, such as rdkafka_example and kafkacat accepts the -o stored command-line argument.

However, the different permanent offset storages (broker, file) are referred to as offsets stores, and RD_KAFKA_OFFSET_STORED actually represents the committed offset, not the stored.

Broker based offsets (default)

The OffsetCommit API was added to Apache Kafka 0.8.2 and thus require you to run a broker of that version or later. This is the preferred method.

With this method offsets are written to the Kafka cluster through the Kafka protocol. This is not to be confused with Zookeeper based offsets which the official 0.8 Scala Kafka clients use, but the new 0.9 Java client uses broker based offset storage exclusively.

The consumer group id must be configured using the group.id configuration property. No additional configuration is required for this method.

Local file based offsets (deprecated)

Offsets are written to a local file, defaulting to {offset.store.path}/topicname-partition*.offset.

Topic configuration properties

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4