question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi do we have a plan to support using this SDK in Flink? It seems that the CloudEvent class can not be serialized in Flink.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
595972434commented, Mar 22, 2022

@slinkydeveloper Yeah that is what I want. I found that KafkaSerializerMessageWriterImpl will extract header attributes defined in CloudEvent and set them to the header variable. My final code looks like this

      override def serialize(element: CloudEvent, timestamp: lang.Long): ProducerRecord[Array[Byte], Array[Byte]] = {
        val headers = new RecordHeaders()
        val value = new CloudEventSerializer().serialize(topic, headers, element)
        new ProducerRecord(topic, 0, "string".getBytes(Charset.defaultCharset()), value, headers)
      }

Thank you very much for your help! 👍

0reactions
pierDipicommented, Mar 22, 2022

Thanks @slinkydeveloper! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flink Workforce Support DE
Info about our in-person interview, what you'll get on your first day, and more. ACCOUNT. All about the apps you use on a...
Read more >
Getting Help - Apache Flink
The Apache Flink community answers many user questions every day. ... You are conflicting with a library that Flink cannot support via child-first ......
Read more >
Ververica: Apache Flink Stream Processing & Analytics
Integrated platform for stateful stream processing & analytics with Apache Flink. Download. icon-support-1. Apache Flink Support. Build & deploy with confidence ...
Read more >
Flink Support - Guide - Data Client Library - HERE Developer
Flink Support is a HERE-proprietary implementation of using data from HERE platform catalogs and layers with Apache Flink framework.
Read more >
Managed Apache Flink® - beta - Aiven
Try Aiven's fully managed Apache Flink® service - and get real time ... Plus, you get access to a 100% human support team...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found