Robin Moffatt 2/25/2020

Kafka Connect JDBC Sink - setting the key field name

Read Original

This technical article explains a specific configuration issue when using the Kafka Connect JDBC Sink connector. It details the error encountered when trying to use a Kafka message's primitive key (like a string) for UPSERT behavior with `pk.mode=record_key` and provides the solution: explicitly setting the `pk.fields` parameter to define the column name in the target database table, using a concrete example with PostgreSQL.

Kafka Connect JDBC Sink - setting the key field name

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet