【Flink】No key set. This method should not be called outside of a keyed context

在这里插入图片描述

1.概述

有没有遇到过No key set. This method should not be called outside of a keyed context.

在这里插入图片描述
你使用了keyed的状态,但前面没有做keyby吗?

做了key by呀

在这里插入图片描述
看自定的的map设置如下

在这里插入图片描述
你设了过期的啊。。。感觉是触发了清理后你又调用了

之前有checkpoint是好的,今天把checkpoint去掉后就报错了

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/124190110