I'm writing a Java program that reads from an Apache Kafka data stream. The messages are Avro serialized. Each message contains a single Avro-serialized record. The package io.confluent.kafka.serializers.KafkAvroDeserializer is not available on my development platform; if it were, then it would be a simple matter of setting the property "value.deserializer" to the proper setting (KafkaAvroDeserializer.class) for Avro deserialization. Therefore, I need to write my own deserializer. All I've found online has been about how to serialize records, write them to a file using a specified Avro schema, and then how to read and DEserialize the written records. The Java Parsers library, as far as I can tell, doesn't provide much help as it assumes that the program receives the data in UNserialized form, then gives the necessary object methods to serialize it, then the necessary methods to DEserialize it.
So, my question is this: how do I deserialize an Avro-formatted record in Java? Just a single record. I have the serialized record. I have the Avro schema. I don't need to append it a serializable file. I simply need to deserialize that record. I can't believe this hasn't been done before, but I've literally found nothing about it online. Can anybody help me on this?
Thank you in advance.
I've tried using Java Parsers library, various Kafka Avro "value.deserializer" property setting, differnet packages in my Eclipse pom.xml file. All to no avail.
There's GOT to be a simple way of deserializing a single Avro record by providing the necessary schema (which I've got).