赞
踩
在idea本地执行Flink例子的时候出现如下图标红问题
Exception in thread "main" org.apache.flink.api.common.InvalidProgramException: MysqlParam(url=jdbc:mysql://node01:3306/flink, username=root, password=root, sql=insert into first(name) values(?);) is not serializable. The object probably contains or references non serializable fields.
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:164)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:132)
at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:69)
at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.clean(StreamExecutionEnvironment.java:2052)
at org.apache.flink.streaming.api.datastream.DataStream.clean(DataStream.java:203)
at org.apache.flink.streaming.api.datastream.DataStream.addSink(DataStream.java:1243)
at com.flink.exampl
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。