Flink SQL xxx is not serializable. The object probably contains or references non serializable field

Posted @SmartSi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flink SQL xxx is not serializable. The object probably contains or references non serializable field相关的知识,希望对你有一定的参考价值。

Flink 版本:1.10.3

1. 现象

在执行如下自定义 Socket Connector 示例:

// 创建 Socket Source 表
String sourceSql = "CREATE TABLE socket_source_table (\\n" +
        "  word STRING COMMENT \'单词\'\\n" +
        ") WITH (\\n" +
        "  \'connector.type\' = \'socket\',\\n" +
        "  \'host\' = \'localhost\',\\n" +
        

以上是关于Flink SQL xxx is not serializable. The object probably contains or references non serializable field的主要内容,如果未能解决你的问题,请参考以下文章

[问题踩坑]Flink 1.11.1 SQL View中UDTF调用异常 Column ‘xxx‘ not found in any table

[问题踩坑]Flink 1.11.1 SQL View中UDTF调用异常 Column ‘xxx‘ not found in any table

java.sql.SQLException: null, message from server: “Host ‘xxx’ is not allowed to connect

Flink实战系列Sort on a non-time-attribute field is not supported

Flink实战系列Sort on a non-time-attribute field is not supported

java.sql.SQLException: null, message from server: "Host 'XXX' is not allowed to connec