For the complete documentation index, see llms.txt. This page is also available as Markdown.

Header replication

Copy record headers from source to target.

Kafka records can carry headers alongside the key and value. Applications on the target Kafka cluster often depend on this metadata, so replicating data without headers would change what downstream consumers see.

By default K2K copies all headers from the source Kafka cluster to the target Kafka cluster. Set features.headerReplication: disabled to drop them on write. For timestamps, see Record creation timestamp. For routing, see Topic selection and data routing.

Prerequisites

Example

name: "my_pipeline"
features:
  headerReplication: disabled
source:
  kafka:
    common:
      "bootstrap.servers": "source:9092"
    consumer:
      "group.id": "my-k2k-group"
target:
  kafka:
    common:
      "bootstrap.servers": "target:9092"
replication:
  - source:
      topic: "orders.*"
  - sink:
      topic: source
      partition: source

Configuration keys

Key
Description
Required
Default
Used by

features.headerReplication

Replicate record headers from the source Kafka cluster to the target Kafka cluster

No

enabled

Replicator

Last updated

Was this helpful?