Skip to content
Snippets Groups Projects
Commit af8e4618 authored by Ankur Dave's avatar Ankur Dave
Browse files

Set serialization properties in GraphSuite

parent 57ac9073
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,9 @@ class GraphSuite extends FunSuite with LocalSparkContext { ...@@ -10,6 +10,9 @@ class GraphSuite extends FunSuite with LocalSparkContext {
// val sc = new SparkContext("local[4]", "test") // val sc = new SparkContext("local[4]", "test")
System.setProperty("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
System.setProperty("spark.kryo.registrator", "org.apache.spark.graph.GraphKryoRegistrator")
test("Graph Creation") { test("Graph Creation") {
withSpark(new SparkContext("local", "test")) { sc => withSpark(new SparkContext("local", "test")) { sc =>
val rawEdges = (0L to 100L).zip((1L to 99L) :+ 0L) val rawEdges = (0L to 100L).zip((1L to 99L) :+ 0L)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment