Spark does not loop through a RDD.map

2015-01-12 Thread rkgurram
Hi, I am observing some weird behavior with spark, it might be my mis-interpretation of some fundamental concepts but I have look at it for 3 days and have not been able to solve it. The source code is pretty long and complex so instead of posting it, I will try to articulate the problem. I am

Re: Spark does not loop through a RDD.map

2015-01-12 Thread Cody Koeninger
At a quick glance, I think you're misunderstanding some basic features. http://spark.apache.org/docs/latest/programming-guide.html#rdd-operations Map is a transformation, it is lazy. You're not calling any action on the result of map. Also, closing over a mutable variable (like idx or