运行flink程序时遇到异常:The types of the interface org.apache.flink.util.OutputTag could not be inferred. Support for synthetic interfaces, lambdas, and generic or raw types is limited at this point。
可能原因:
1、outtag标签定义时缺少{}。解决方法:定义时加{}
OutputTag<String> timeoutTag = new OutputTag<String >("timeout"){};
2、flatmap()或其他有类型擦除的算子需要指定返回的类型。解决方法:.return(Types)