<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Kafka Key not populated (PublishKafkaRecord) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kafka-Key-not-populated-PublishKafkaRecord/m-p/336655#M232336</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95964"&gt;@CloudNaive&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the "Message Key Field" property doesn't work with a nested structure. This property must refer to a top level field of the record that contains the key value.&lt;/P&gt;&lt;P&gt;In the example below I used UpdateRecord to create a top level field called "id" and update it with the value of "metadata.aggregateId". Them, on the PublishKafkaRecord I was able to use the "id" field as the Kafka message key.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="araujo_0-1645348571104.png" style="width: 704px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33623i783B81EC96AC96F1/image-dimensions/704x401?v=v2" width="704" height="401" role="button" title="araujo_0-1645348571104.png" alt="araujo_0-1645348571104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Feb 2022 09:16:38 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2022-02-20T09:16:38Z</dc:date>
  </channel>
</rss>

