Spark Parallelize? (Could not find creator property with name 'id')

前端 未结 4 1603
灰色年华
灰色年华 2020-12-30 01:21

What causes this Serialization error in Apache Spark 1.4.0 when calling:

sc.parallelize(strList, 4)

This exception is thrown:



        
4条回答
  •  孤城傲影
    2020-12-30 02:20

    @Interfector is correct. I ran into this issue also, here's a snippet from my sbt file and the 'dependencyOverrides' section which fixed it.

    libraryDependencies ++= Seq(
      "com.amazonaws" % "amazon-kinesis-client" % "1.4.0",
      "org.apache.spark" %% "spark-core" % "1.4.0",
      "org.apache.spark" %% "spark-streaming" % "1.4.0",
      "org.apache.spark" %% "spark-streaming-kinesis-asl" % "1.4.0",
      "com.amazonaws" % "aws-java-sdk" % "1.10.2"
    )
    
    dependencyOverrides ++= Set(
      "com.fasterxml.jackson.core" % "jackson-databind" % "2.4.4"
    )
    

提交回复
热议问题