java.lang.UnsupportedOperationException: No Encoder found for java.time.LocalDate - field (class: "java.time.LocalDate", name: "callDate") - root class: "FireService"

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Apache Spark 2.0: java.lang.UnsupportedOperationException: No Encoder found for java.time.LocalDate

    Stack Overflow | 8 months ago | Harmeet Singh Taara
    java.lang.UnsupportedOperationException: No Encoder found for java.time.LocalDate - field (class: "java.time.LocalDate", name: "callDate") - root class: "FireService"
  2. 0

    UnsupportedOperationException: No Encoder found for Any

    Stack Overflow | 3 months ago | Peter
    java.lang.UnsupportedOperationException: No Encoder found for Any - field (class: "java.lang.Object", name: "_1") - array element class: "scala.Tuple3" - root class: "scala.collection.immutable.List"

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No Encoder found for java.time.LocalDate - field (class: "java.time.LocalDate", name: "callDate") - root class: "FireService"

      at org.apache.spark.sql.catalyst.ScalaReflection$.org$apache$spark$sql$catalyst$ScalaReflection$$serializerFor()
    2. Spark Project Catalyst
      ScalaReflection$$anonfun$9.apply
      1. org.apache.spark.sql.catalyst.ScalaReflection$.org$apache$spark$sql$catalyst$ScalaReflection$$serializerFor(ScalaReflection.scala:598)
      2. org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$9.apply(ScalaReflection.scala:592)
      3. org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$9.apply(ScalaReflection.scala:583)
      3 frames
    3. Scala
      TraversableLike$class.flatMap
      1. scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
      2. scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
      3. scala.collection.immutable.List.foreach(List.scala:381)
      4. scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
      4 frames