Kafka REST proxy endpoint is corrupting and wrongly parsing data

AwesomePaul 20 Reputation points
2024-07-11T20:33:51.8733333+00:00

Hello Team,

I recently activated REST proxy endpoint for HdInsight kafka. The endpoint is used to produce data to a topic, and upon consuming from the topic I observed that the data is wrongly encoded and parsed. If I try to produce data from the client using kafka console producer, the data is parsed and consumed with no issues.

My Kafka cluster version is 5.1, and below are the screenshots from the producer and consumer.

Case 1 ( using Content-type as "application/json")

ProducerUser's image

Consumer

User's image Case 2 ( using Content-type as "application/vnd.kafka.json.v2+json")

Producer

User's image

Consumer

User's image

Case 3 (Using Kafka console producer from terminal)

Producer

User's image

Consumer

User's image

Please advise on possible solution.

Thank you.

Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
215 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.