spark 报错 No Encoder found for Iterable

查看了一下map每个返回的是immutable.Iterable[MyClass]
调用toSeq方法变成Seq[MyClass]就行了。

你可能感兴趣的:(Scala,Spark)