Flink 报错

报错信息1:

Error:(20, 36) could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[Int]
    val stream = env.fromCollection(list)
Error:(20, 36) not enough arguments for method fromCollection: (implicit evidence$2: org.apache.flink.api.common.typeinfo.TypeInformation[Int])org.apache.flink.streaming.api.scala.DataStream[Int].
Unspecified value parameter evidence$2.
    val stream = env.fromCollection(list)

解决方法:

import org.apache.flink.streaming.api.scala.StreamExecutionEnvironment

改为

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

原文地址:https://www.cnblogs.com/LXL616/p/11179275.html