报错信息:The types of the interface org.apache.flink.util.OutputTag could not be inferred.
原来的代码:
OutputTag displayTag = new OutputTag(“display”);
OutputTag actionTag = new OutputTag(“action”);
OutputTag errTag = new OutputTag(“action”);
OutputTag pageTag = new OutputTag(“page”);
原因://定义侧输出流的时候忘记加{}
必须要加{},加了才代表的是一个匿名类,在运行的时候才会指定数据类型是JSONObject类型,不加会报错
OutputTag displayTag = new OutputTag(“display”){};
OutputTag actionTag = new OutputTag(“action”){};
OutputTag errTag = new OutputTag(“action”){};
OutputTag pageTag = new OutputTag(“page”){};
The types of the interface org.apache.flink.util.OutputTag could not be inferred.
最新推荐文章于 2024-04-29 18:56:28 发布