Re: swap tuple

2015-05-14 Thread Yasemin Kaya
*Sent:* Thursday, May 14, 2015 1:24 PM > *To:* 'Holden Karau'; 'Yasemin Kaya' > *Cc:* user@spark.apache.org > *Subject:* RE: swap tuple > > Where is the “Tuple” supposed to be in - you can > refer to a “Tuple” if it was e.g. > > > > > *From:* holden

RE: swap tuple

2015-05-14 Thread Stephen Carman
, May 14, 2015 1:24 PM To: 'Holden Karau'; 'Yasemin Kaya' Cc: user@spark.apache.org Subject: RE: swap tuple Where is the “Tuple” supposed to be in - you can refer to a “Tuple” if it was e.g. > From: holden.ka...@gmail.com [mailto:holden.ka...@gmail.com] On Behalf Of Hold

RE: swap tuple

2015-05-14 Thread Evo Eftimov
Where is the “Tuple” supposed to be in - you can refer to a “Tuple” if it was e.g. > From: holden.ka...@gmail.com [mailto:holden.ka...@gmail.com] On Behalf Of Holden Karau Sent: Thursday, May 14, 2015 5:56 PM To: Yasemin Kaya Cc: user@spark.apache.org Subject: Re: swap tuple Can

Re: swap tuple

2015-05-14 Thread Holden Karau
Can you paste your code? transformations return a new RDD rather than modifying an existing one, so if you were to swap the values of the tuple using a map you would get back a new RDD and then you would want to try and print this new RDD instead of the original one. On Thursday, May 14, 2015, Yas