Closed Fei-Guang closed 7 years ago
Hi @Fei-Guang! Where are you running that? Are you running that in spark-shell? ADAM relies on a >>>custom Kryo serializer Registrator for serialization. If you use ./bin/adam-shell, this starts a Spark >>>shell >>>where the serialization config (and classpath) are set up.
hello @fnothaft i run it in idea, how to register a Kryo serializer in idea?
"$SPARK_SHELL" \ --conf spark.serializer=org.apache.spark.serializer.KryoSerializer \ --conf spark.kryo.registrator=org.bdgenomics.adam.serialization.ADAMKryoRegistrator \
spark.conf.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
spark.conf.set("spark.kryo.registrator", "org.bdgenomics.adam.serialization.ADAMKryoRegistrator")
it's spark bug
"it's spark bug" is there a link to it? what version of spark where it is solved?
i run the the following code in idea
MY ENV:
it reports the following error:
java.io.NotSerializableException: org.bdgenomics.formats.avro.AlignmentRecord Serialization stack:
Process finished with exit code 1