Re: toLocalIterator in Spark 1.0.0

2014-11-14 Thread Andrew Ash
Deep, toLocalIterator is a method on the RDD class. So try this instead: rdd.toLocalIterator() On Fri, Nov 14, 2014 at 12:21 AM, Deep Pradhan wrote: > val iter = toLocalIterator (rdd) > > This is what I am doing and it says error: not found > > On Fri, Nov 14, 2014 at 12:34 PM, Patrick Wend

Re: toLocalIterator in Spark 1.0.0

2014-11-14 Thread Deep Pradhan
val iter = toLocalIterator (rdd) This is what I am doing and it says error: not found On Fri, Nov 14, 2014 at 12:34 PM, Patrick Wendell wrote: > It looks like you are trying to directly import the toLocalIterator > function. You can't import functions, it should just appear as a > method of an

Re: toLocalIterator in Spark 1.0.0

2014-11-13 Thread Patrick Wendell
It looks like you are trying to directly import the toLocalIterator function. You can't import functions, it should just appear as a method of an existing RDD if you have one. - Patrick On Thu, Nov 13, 2014 at 10:21 PM, Deep Pradhan wrote: > Hi, > > I am using Spark 1.0.0 and Scala 2.10.3. > > I

toLocalIterator in Spark 1.0.0

2014-11-13 Thread Deep Pradhan
Hi, I am using Spark 1.0.0 and Scala 2.10.3. I want to use toLocalIterator in a code but the spark shell tells *not found: value toLocalIterator* I also did import org.apache.spark.rdd but even after this the shell tells *object toLocalIterator is not a member of package org.apache.spark.rdd*