{
"subject": "test.topic",
"version": 1,
"id": 1,
"schema": "{\"type\":\"record\",\"name\":\"avro_message\",\"fields\":[{\"name\":\"testMessage\",\"type\":[\"null\",\"string\"]}]}"
}
{ "namespace": "com.example.avro", "type": "record", "name": "Message", "fields": [ { "name": "testMessage", "type": "string" } ]}
I have used avro-maven-plugin to generate java source for this schema. Which I used to create the specificAvroSerde.
Serde<String> stringSerde = Serdes.String();
Serde<Message> messageSerde = new SpecificAvroSerde();
KStream<String, Message> kStream = kStreamBuilder.stream(stringSerde, messageSerde, "test.topic");
I am able to connect to the topic, but it errors out throwing a Deserialization exception. No matter what message I consume, the value ends up being null. Can anyone help me understand what I am missing here.
Thanks.
Hi,
Can you post the snippet code ?
At first it seems to me that you have to give to the SpecificAvroSerde constructor the Schema Registry client (CachedSchemaRegistryClient ...).
Best regards
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/62ce3d7b-09cc-456b-9791-72dac195aa00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saïd BOURAS
Data Engineer
Mobile: 0662988731
Zenika Paris
10 rue de Milan 75009 Paris
Standard : +33(0)1 45 26 19 15 - Fax : +33(0)1 72 70 45 10

To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/62ce3d7b-09cc-456b-9791-72dac195aa00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/62ce3d7b-09cc-456b-9791-72dac195aa00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> an email to confluent-platform+unsub...@googlegroups.com
> <mailto:confluent-platform+unsub...@googlegroups.com>.