spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Ash <and...@andrewash.com>
Subject Re: Help with groupByKey
Date Mon, 03 Mar 2014 03:56:33 GMT
rdd.reduceByKey(_+_) using list concatenation?

Sent from my mobile phone
On Mar 2, 2014 7:05 PM, "David Thomas" <dt5434884@gmail.com> wrote:

> I have an RDD of (K, Array[V]) pairs.
>
> For example: ((key1, (1,2,3)), (key2, (3,2,4)), (key1, (4,3,2)))
>
> How can I do a groupByKey such that I get back an RDD of the form (K,
> Array[V]) pairs.
>
> Ex: ((key1, (1,2,3,4,3,2)), (key2, (3,2,4)))
>

Mime
View raw message