You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the given AvroSerializer and Deserializer in Serde with Kafka streams , I am facing ClassCastException
GenericData$Record cannot be cast to org.apache.avro.specific.SpecificRecordBase.
config.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.serdeFrom(new AvroSerializer()
, new AvroDeserializer(MemberMeasureKey.class)).getClass());
config.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.serdeFrom(new AvroSerializer()
, new AvroDeserializer(MemberMeasureValue.class)).getClass());