【发布时间】:2018-10-25 15:45:33
【问题描述】:
背景:我在生产到 prod 主题时使用了错误的 avro 模式注册表,结果 kafka 连接由于模式 id 错误的消息而关闭。因此,作为恢复计划,我们希望将 prod 主题中的消息复制到一个测试主题,然后将好的消息写入 hdfs。但是在从 prod 主题读取时,我们面临某些偏移量有错误模式 id 的问题。有没有办法在写入另一个主题时忽略这些偏移量。
Exception in thread "StreamThread-1"
org.apache.kafka.streams.errors.StreamsException: Failed to deserialize value
for record. topic=xxxx, partition=9, offset=1259032
Caused by: org.apache.kafka.common.errors.SerializationException: Error
retrieving Avro schema for id 600
Caused by:
io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException:
Schema not found io.confluent.rest.exceptions.RestNotFoundException: Schema not found
io.confluent.rest.exceptions.RestNotFoundException: Schema not found
{代码}
【问题讨论】:
标签: apache-kafka apache-kafka-streams apache-kafka-connect