Flink InvalidTypesException: The return type of function could not be determined automatically...
初学Flink时遇到的小问题,后发现其实挺常见的,但还是稍作记录。
在WordCount的示例代码中有如下代码:
public static final class Tokenizer implements FlatMapFunction<String, Tuple2<String, Integer>> {
@Override
public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {
// normalize and split the line
String[] tokens = value