【发布时间】:2020-09-20 07:52:43
【问题描述】:
我在我的 flink 应用程序中看到一些关于我的节俭类的日志:
2020-06-01 14:31:28 INFO TypeExtractor:1885 - Class class com.test.TestStruct contains custom serialization methods we do not call, so it cannot be used as a POJO type and must be processed as GenericType. Please read the Flink documentation on "Data Types & Serialization" for details of the effect on performance.
所以我按照这里的说明进行操作:
我这样做是为了 TestStruct 的节俭以及其中的所有节俭结构。 (虽然我跳过了命名类型)。
此外,生成的节俭代码是用 Java 编写的,而 flink 应用程序是使用 scala 编写的。
如何使该错误消失?因为我遇到了另一个错误,如果我通过我的 dataStream 转换为 TestStruct,则会丢失一些字段。我怀疑这是由于序列化问题造成的?
【问题讨论】:
标签: apache-flink thrift