错误
Information:2020/1/29 13:34 - Compilation completed with 2 errors and 0 warnings in 1 s 440 ms
D:\new\flink-scala\src\main\scala\com\it\flink\wordcount\BstchWordCountOnScala.scala
Error:(17, 47) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[String]
val line: DataSet[String] = source.flatMap(.split("\t"))
Error:(17, 47) not enough arguments for method flatMap: (implicit evidence$16: org.apache.flink.api.common.typeinfo.TypeInformation[String], implicit evidence$17: scala.reflect.ClassTag[String])org.apache.flink.api.scala.DataSet[String].
Unspecified value parameters evidence$16, evidence$17.
val line: DataSet[String] = source.flatMap(.split("\t"))
原因没有找到隐式转换
解决方案导包
import org.apache.flink.api.scala._