【Flink】The Kryo Output still contains data from a previous serialize call. It has to be flushed or
最新推荐文章于 2024-01-15 08:43:10 发布
在Flink应用中,由于在多线程环境下使用同一个Output实例,导致出现‘Kryo Output still contains data from a previous serialize call’的错误。问题源于collect方法非线程安全,解决方法是在多线程操作时对Output加锁同步。
摘要由CSDN通过智能技术生成