Kafka Message Keys
You can enable the Kafka origin and destination to process Kafka message keys. Kafka stages cannot process message keys when the stage is configured to process delimited data.
Note: To process Kafka message keys with the
JSON data format, Apache Spark version 2.4 or later must be installed on the
Transformer machine and on each node in the cluster.
The Kafka stages can handle Kafka message keys as follows:
- Kafka origin
- The Kafka
origin can capture the message keys included in each Kafka
message and store them in generated records. The origin writes the message
key to a String field named
key
. - Kafka destination
- The Kafka destination can pass values in a specified field to Kafka as Kafka message keys.