org.apache.spark.SparkException: Task not serializable

Stack Overflow | Cedric H. | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Spark mlib k-means prediction raise "not serialisable" error

    Stack Overflow | 6 months ago | Cedric H.
    org.apache.spark.SparkException: Task not serializable

    Root Cause Analysis

    1. org.apache.spark.SparkException

      Task not serializable

      at org.apache.spark.util.ClosureCleaner$.ensureSerializable()
    2. Spark
      ClosureCleaner$.clean
      1. org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:304)
      2. org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:294)
      3. org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:122)
      3 frames