org.apache.kafka.streams.errors.StreamsException:输入记录ConsumerRecord具有无效的(负)时间戳

时间:2019-06-13 08:29:30

标签: java apache-kafka apache-kafka-streams

  

线程异常   “ wordcount-application-59e5f35d-6d3a-4c0a-a812-9265e780d1d4-StreamThread-1”   org.apache.kafka.streams.errors.StreamsException:输入记录   ConsumerRecord(topic =测试,分区= 1,leaderEpoch =空,偏移   = 57,CreateTime = -1,序列化密钥大小= -1,序列化值大小= 0,标头= RecordHeaders(标头= [],isReadOnly = false),键= null,值=)具有无效的(负)时间戳。可能是因为   0.10之前的生产者客户端用于将此记录写入Kafka   而不嵌入时间戳,或者因为创建了输入主题   然后将Kafka集群升级到0.10+。使用其他   TimestampExtractor处理此数据。在   org.apache.kafka.streams.processor.FailOnInvalidTimestamp.onInvalidTimestamp(FailOnInvalidTimestamp.java:73)     在   org.apache.kafka.streams.processor.ExtractRecordMetadataTimestamp.extract(ExtractRecordMetadataTimestamp.java:61)     在   org.apache.kafka.streams.processor.FailOnInvalidTimestamp.extract(FailOnInvalidTimestamp.java:48)     在   org.apache.kafka.streams.processor.internals.RecordQueue.maybeUpdateTimestamp(RecordQueue.java:169)     在   org.apache.kafka.streams.processor.internals.RecordQueue.addRawRecords(RecordQueue.java:101)     在   org.apache.kafka.streams.processor.internals.PartitionGroup.addRawRecords(PartitionGroup.java:124)     在   org.apache.kafka.streams.processor.internals.StreamTask.addRecords(StreamTask.java:711)     在   org.apache.kafka.streams.processor.internals.StreamThread.addRecordsToTasks(StreamThread.java:995)     在   org.apache.kafka.streams.processor.internals.StreamThread.runOnce(StreamThread.java:833)     在   org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:777)     在   org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:747)

0 个答案:

没有答案