org.apache.spark.SparkException: Task not serializable

Stack Overflow | D.Asare | 2 months ago
  1. 0

    newAPIHadoopRDD Task not serializable

    Stack Overflow | 2 months ago | D.Asare
    org.apache.spark.SparkException: Task not serializable
  2. 0

    Creating an RDD after retrieving data from cassandra DB

    Stack Overflow | 1 year ago | OiRc
    org.apache.spark.SparkException: Task not serializable
  3. 0

    TaggedInputFileArgument needs to be Serializable - or gatk-protected fails

    GitHub | 5 months ago | akiezun
    org.apache.spark.SparkException: Task not serializable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    how to solve this sparkstreaming error

    Stack Overflow | 5 months ago | Samy Nathan
    org.apache.spark.SparkException: Task not serializable

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.NotSerializableException

      com.hbfinance.DataframeExample Serialization stack: - object not serializable (class: com.hbfinance.DataframeExample, value: com.hbfinance.DataframeExample@1f3165e7) - field (class: com.hbfinance.DataframeExample$1, name: this$0, type: class com.hbfinance.DataframeExample) - object (class com.hbfinance.DataframeExample$1, com.hbfinance.DataframeExample$1@1866da85) - field (class: org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1, name: fun$1, type: interface org.apache.spark.api.java.function.Function) - object (class org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1, <function1>)

      at org.apache.spark.serializer.SerializationDebugger$.improveException()
    2. Spark
      AbstractJavaRDDLike.map
      1. org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:40)
      2. org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:47)
      3. org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:84)
      4. org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:301)
      5. org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:294)
      6. org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:122)
      7. org.apache.spark.SparkContext.clean(SparkContext.scala:2021)
      8. org.apache.spark.rdd.RDD$$anonfun$map$1.apply(RDD.scala:314)
      9. org.apache.spark.rdd.RDD$$anonfun$map$1.apply(RDD.scala:313)
      10. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
      11. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
      12. org.apache.spark.rdd.RDD.withScope(RDD.scala:306)
      13. org.apache.spark.rdd.RDD.map(RDD.scala:313)
      14. org.apache.spark.api.java.JavaRDDLike$class.map(JavaRDDLike.scala:93)
      15. org.apache.spark.api.java.AbstractJavaRDDLike.map(JavaRDDLike.scala:47)
      15 frames
    3. com.hbfinance
      DataframeExample.main
      1. com.hbfinance.DataframeExample.run(DataframeExample.java:54)
      2. com.hbfinance.DataframeExample.main(DataframeExample.java:88)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. Spark
      SparkSubmit.main
      1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
      2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
      3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
      4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
      5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      5 frames