Spark: java.lang.UnsupportedOperationException: No Encoder found for java.time.LocalDate
问题 I'm writing a Spark application using version 2.1.1. The following code got the error when calling a method with LocalDate parameter? Exception in thread "main" java.lang.UnsupportedOperationException: No Encoder found for java.time.LocalDate - field (class: "java.time.LocalDate", name: "_2") - root class: "scala.Tuple2" at org.apache.spark.sql.catalyst.ScalaReflection$.org$apache$spark$sql$catalyst$ScalaReflection$$serializerFor(ScalaReflection.scala:602) at org.apache.spark.sql.catalyst