spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <so...@cloudera.com>
Subject Re: scala RDD sortby compilation error
Date Tue, 04 Nov 2014 21:42:22 GMT
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 <joshjdevl@gmail.com> wrote:
> Please find my code here.
>
> On Tue, Nov 4, 2014 at 11:33 AM, Josh J <joshjdevl@gmail.com> 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 <joshjdevl@gmail.com> 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: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message