<?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>topic Re: Get Message create Timestamp from Kafka Topic while reading in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354475#M120441</link>
    <description>&lt;P&gt;Hello @Thanigaivasan Dayalan​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To get the message create timestamp of kafka topic, please follow the below steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; setup the Output type to "ConsumerRecord" in tKafkaInput Basic settings&lt;/LI&gt;&lt;LI&gt; using tJavaRow to retrieve the record timestamp and values by the code like&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;          org.apache.kafka.clients.consumer.ConsumerRecord record = (org.apache.kafka.clients.consumer.ConsumerRecord) input_row.record;&lt;/P&gt;&lt;P&gt;output_row.timestamp = record.timestamp();&lt;/P&gt;&lt;P&gt;output_row.topic = record.topic();&lt;/P&gt;&lt;P&gt;output_row.key = (byte[]) record.key();&lt;/P&gt;&lt;P&gt;output_row.value = (byte[]) record.value();&lt;/P&gt;&lt;P&gt;      3 using tLogRow to output the rows&lt;/P&gt;&lt;P&gt;I tested the above steps, it's working as expected.&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvA1uAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138369iC8776B12F9812FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvA1uAAE.png" alt="0695b00000lvA1uAAE.png" /&gt;&lt;/span&gt;Please refer to the below article&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/8.0/kafka/kafka-avro-read-avro-data-from-consumerrecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Aiming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 08:01:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-20T08:01:36Z</dc:date>
    <item>
      <title>Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354474#M120440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to download a Json file from Kafka topic and I want to retrieve message create timestamp from kafka topic while reading.&lt;/P&gt;&lt;P&gt;Used below configs in the tkafkainput component, but they are not working. &lt;/P&gt;&lt;P&gt;I Need help here to capture the timestamp while reading message from Kafka topic.&lt;/P&gt;&lt;P&gt;configs tried:&lt;/P&gt;&lt;P&gt;print.timestamp=true &lt;/P&gt;&lt;P&gt;message.timestamp.type=CreateTime&lt;/P&gt;&lt;P&gt;data.timestamp=CreateTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all of them are throwing a warning message while running as "The configuration 'print.timestamp' was supplied but this isn't a known config."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note - While providing the same config in the backend I can see the createtime .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&amp;nbsp;bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic topicName --property print.timestamp=true --from-beginning &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CreateTime:1609917197764. is printed in the beginning of the message.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354474#M120440</guid>
      <dc:creator>vasan212</dc:creator>
      <dc:date>2024-11-15T21:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354475#M120441</link>
      <description>&lt;P&gt;Hello @Thanigaivasan Dayalan​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To get the message create timestamp of kafka topic, please follow the below steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; setup the Output type to "ConsumerRecord" in tKafkaInput Basic settings&lt;/LI&gt;&lt;LI&gt; using tJavaRow to retrieve the record timestamp and values by the code like&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;          org.apache.kafka.clients.consumer.ConsumerRecord record = (org.apache.kafka.clients.consumer.ConsumerRecord) input_row.record;&lt;/P&gt;&lt;P&gt;output_row.timestamp = record.timestamp();&lt;/P&gt;&lt;P&gt;output_row.topic = record.topic();&lt;/P&gt;&lt;P&gt;output_row.key = (byte[]) record.key();&lt;/P&gt;&lt;P&gt;output_row.value = (byte[]) record.value();&lt;/P&gt;&lt;P&gt;      3 using tLogRow to output the rows&lt;/P&gt;&lt;P&gt;I tested the above steps, it's working as expected.&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvA1uAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138369iC8776B12F9812FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvA1uAAE.png" alt="0695b00000lvA1uAAE.png" /&gt;&lt;/span&gt;Please refer to the below article&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/8.0/kafka/kafka-avro-read-avro-data-from-consumerrecord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Aiming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 08:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354475#M120441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-20T08:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354476#M120442</link>
      <description>&lt;P&gt;@Aiming Chen​&amp;nbsp; - Thank you for the response. But, I don't see 'ConsumerRecord' in the output type. All I can see is 'String' and 'byte[]'. Is there any setting I need to enable?&lt;/P&gt;&lt;P&gt;I'm using Talend Real time BigData Platform 7.3.1 and job type is standard job.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354476#M120442</guid>
      <dc:creator>vasan212</dc:creator>
      <dc:date>2023-07-20T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354477#M120443</link>
      <description>&lt;P&gt;Unfortunately, the 'ConsumerRecord' output type for tKafkaInput is only available in Talend studio 8.0 but not in 7.3.1. thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 03:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354477#M120443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-21T03:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354478#M120444</link>
      <description>&lt;P&gt;Is there any other approach in older version of Talend to get the Timestamp from the Kafka topic, like using java components?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354478#M120444</guid>
      <dc:creator>vasan212</dc:creator>
      <dc:date>2023-07-21T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354479#M120445</link>
      <description>&lt;P&gt;@Xiaodi Shi​&amp;nbsp;- Hello Sabrina... Any help here is much appreciated. TIA&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 13:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354479#M120445</guid>
      <dc:creator>vasan212</dc:creator>
      <dc:date>2023-07-25T13:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354480#M120446</link>
      <description>&lt;P&gt;Hello @Thanigaivasan Dayalan​&amp;nbsp;&lt;/P&gt;&lt;P&gt;tKafka* to handle Avro data in DI jobs (Avro functionality) is a new feature and not available in V 7.3.1 I'm afraid.&lt;/P&gt;&lt;P&gt;Please also note that this feature was implemented in V 8.0.1 for the tKafkaInput/Output components available in Standard jobs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/kafka/tkafkainput-standard-properties" alt="https://help.talend.com/r/en-US/8.0/kafka/tkafkainput-standard-properties" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/kafka/tkafkainput-standard-properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should upgrade to Talend 8 to achieve it and feel free to let me know if it is OK with you.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 04:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354480#M120446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-26T04:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get Message create Timestamp from Kafka Topic while reading</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354481#M120447</link>
      <description>&lt;P&gt;@Xiaodi Shi​&amp;nbsp; - I'm not using Avro. I'm consuming Json message from Kafka Topic and I want to extract the message create timestamp(Time when the file was placed in Kafka Topic).&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Message-create-Timestamp-from-Kafka-Topic-while-reading/m-p/2354481#M120447</guid>
      <dc:creator>vasan212</dc:creator>
      <dc:date>2023-07-27T12:22:53Z</dc:date>
    </item>
  </channel>
</rss>

