解决Flink中could not find implicit value for evidence parameter of type报错

一.出现报错

Error:(23, 41) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[String]
val wordcount = inputDataSet.flatMap(_.split(" "))

翻译:

错误:(23,41)找不到类型为org.apache.flink.api.common.typeinfo.TypeInformation
[String]的证据参数的隐含值

二.解决办法

导入下面包即可:

import org.apache.flink.api.scala._

猜你喜欢

转载自blog.csdn.net/Jackson_mvp/article/details/106318705