Re: scala RDD sortby compilation error

2014-11-04 Thread Sean Owen
That works for me in the shell, at least, without the streaming bit and whatever other code you had before this. Did you import scala.reflect.classTag? I think you'd get a different error if not. Maybe remove the "foreachFunc ="? On Tue, Nov 4, 2014 at 9:11 PM, Josh J wrote: > Please find my code

Re: scala RDD sortby compilation error

2014-11-04 Thread Josh J
Please find my code here . On Tue, Nov 4, 2014 at 11:33 AM, Josh J wrote: > I'm using the same code >

Re: scala RDD sortby compilation error

2014-11-04 Thread Josh J
I'm using the same code , though still receive not enough arguments for method sortBy: (f: String => K, ascending: Boolean, numPartitions: Int)(implicit ord:

scala RDD sortby compilation error

2014-11-04 Thread Josh J
Hi, Does anyone have any good examples of using sortby for RDDs and scala? I'm receiving not enough arguments for method sortBy: (f: String => K, ascending: Boolean, numPartitions: Int)(implicit ord: Ordering[K], implicit ctag: scala.reflect.ClassTag[K])org.apache.spark.rdd.RDD[String]. Unspec