Flink第一报错:Error:(104, 31) value foreach is not a member of Iterable[com.networktrafficanalysis.UrlViewCount] for(urlView <- urlState.get){

Error details, see picture

Cause Analysis:

And the lack of a scala implicit conversion between the java operation: Solution: import scala.collection.JavaConversions._

Guess you like

Origin www.cnblogs.com/shsgshn/p/11571998.html