Last active
May 7, 2019 18:52
-
-
Save pomadchin/778b3859aab248301e92926eb6a7441c to your computer and use it in GitHub Desktop.
Spark Serializer usage example (for test purposes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.spark.SparkEnv | |
val serializer = SparkEnv.get.closureSerializer.newInstance() | |
val f1 = serializer.serialize(f) | |
val client2 = serializer.deserialize[() => S3Client](f1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment