I am writing an Apache Flink streaming application that deserializes data (Avro format) read off a Kafka bus (more details on here). The data is being deserialized into a Sc
The Avro serializer or more specifically the SpecificData
requires the target type to have a default constructor (constructor with no arguments). Otherwise Avro cannot instantiate an object of the target type.
Try to add a default constructor via
case class DeviceData(
deviceId: String,
sw_version: String,
timestamp: String,
reading: Double) {
def this() = this("default", "default", "default", 0)
}