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
The record (value) in the Kafka topic is Avro serialized. I am using the below redis sink connector settings to copy the data from Kafka topic to Redis
Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. Error: The value for the record must be String or Bytes. Consider using the ByteArrayConverter or StringConverter if the data is stored in Kafka in the format needed in Redis. Another option is to use a single message transformation to transform the data before it is written to Redis. (org.apache.kafka.connect.runtime.WorkerSinkTask)
In the samples for this repo, I see "TopicRecordNameStrategy" is used for Avro de-serialization, so I wanted to know if it only work for "TopicRecordNameStrategy" strategy or any other strategy - as in my case (TopicNameStrategy)?
Thanks.
The text was updated successfully, but these errors were encountered:
I haven't played with any other naming strategies so at this time it's not supported. I'm not sure what the problem is from looking at the error message so I'd have to play with it to figure out what's going on.
Thank you for the reply. I was able to find an an alternative solution that works for TopicNameStrategy.
I used the "ByteArrayConverter" to move the data into Redis in "As-is" format from Kafka. Then I used the raw bytes from Redis on the reader side to connect to the Schema Registry and de-serialize the message.
AvroDeserializer<T> deserializer = new AvroDeserializer<T>(schemaRegistryClient);
T result = await deserializer.DeserializeAsync(obj, false, SerializationContext.Empty);
The record (value) in the Kafka topic is Avro serialized. I am using the below redis sink connector settings to copy the data from Kafka topic to Redis
I see the below error
In the samples for this repo, I see "TopicRecordNameStrategy" is used for Avro de-serialization, so I wanted to know if it only work for "TopicRecordNameStrategy" strategy or any other strategy - as in my case (TopicNameStrategy)?
Thanks.
The text was updated successfully, but these errors were encountered: