org.apache.flink.api.common.functions.InvalidTypesException: The return type of function ‘main(Batch

在这里插入图片描述


问题描述:

使用Flink写一个批处理程序,然后提交运行出现了 Exception in thread "main" org.apache.flink.api.common.functions.InvalidTypesException: The return type of function 'main(BatchWordCount.java:28)' could not be determined automatically, due to type erasure. You can give type information hints by using the returns(...) method on the result of the transformation call, or by letting your function implement the 'ResultTypeQueryable' interface.

在这里插入图片描述

Exc

猜你喜欢

转载自blog.csdn.net/m0_47256162/article/details/133013405