You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by AJ614 <an...@gmail.com> on 2015/02/23 09:41:26 UTC
Sortingthe output for spark join
Hi ,
To simplify my problem -
I have 2 files from which I reading words.
the o/p is like
file 1
aaa 4
bbb 6
ddd 3
file 2
ddd 2
bbb 6
ttt 5
if I do file1.join(file2)
I get (ddd(3,2)
bbb(6,6)
If I want to sort the output by the number of occurances of the word i file1
. How do I achive that.
Any help would be appreciated.
Thanks
AJ
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Sortingthe-output-for-spark-join-tp21763.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org