Flink 报错 Caused by: java.lang.RuntimeException: Record has Long.MIN

Flink 报错 Caused by: java.lang.RuntimeException: Record has Long.MIN,第1张

Flink 报错 Caused by: java.lang.RuntimeException: Record has Long.MIN
Caused by: java.lang.RuntimeException: Record has Long.MIN_VALUE timestamp (= no timestamp marker). Is the time characteristic set to 'ProcessingTime', or did you forget to call 'DataStream.assignTimestampsAndWatermarks(...)'?

原因:
在使用老版的窗口时,未指定时间语义,导致报错。

解决方案:

在声明 Flink 环境时,设置时间语义

//需要设置时间语义
env.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime);

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5654458.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存