Skip to content
Snippets Groups Projects
Commit a5c28bb8 authored by Patrick Wendell's avatar Patrick Wendell
Browse files

Removing unnecessary map

parent 03459545
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class DistributedSuite extends FunSuite with ShouldMatchers with BeforeAndAfter
val numPartitions = 10
sc = new SparkContext("local-cluster[%s,1,512]".format(numSlaves), "test")
val data = sc.parallelize(1 to 100, numPartitions).map(x => (x, x)).
val data = sc.parallelize(1 to 100, numPartitions).
map(x => throw new NotSerializableExn(new NotSerializableClass))
intercept[SparkException] {
data.count()
......
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