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 <[email protected]> wrote: > Please find my code here. > > On Tue, Nov 4, 2014 at 11:33 AM, Josh J <[email protected]> wrote: >> >> I'm using the same code, though still receive >> >> 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]. >> >> Unspecified value parameter f. >> >> >> On Tue, Nov 4, 2014 at 11:28 AM, Josh J <[email protected]> wrote: >>> >>> 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]. >>> >>> Unspecified value parameter f. >>> >>> >>> I tried to follow the example in the test case by using the same approach >>> even same method names and parameters though no luck. >>> >>> >>> Thanks, >>> >>> Josh >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
