sortByKey trouble

2014-09-24 Thread david
do is sort on the first element. Thank's -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/sortByKey-trouble-tp14989.html Sent from the Apache Spark User List mailing list archive at Nabble.com

RE: sortByKey trouble

2014-09-24 Thread Shao, Saisai
- From: david [mailto:david...@free.fr] Sent: Wednesday, September 24, 2014 4:30 PM To: u...@spark.incubator.apache.org Subject: sortByKey trouble Hi, Does anybody know how to use sortbykey in scala on a RDD like : val rddToSave = file.map(l = l.split(\\|)).map(r = (r(34)+-+r(3), r(4), r(10), r

Re: sortByKey trouble

2014-09-24 Thread Liquan Pei
: http://apache-spark-user-list.1001560.n3.nabble.com/sortByKey-trouble-tp14989.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org

Re: sortByKey trouble

2014-09-24 Thread david
.1001560.n3.nabble.com/sortByKey-trouble-tp14989p15002.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h

Re: sortByKey trouble

2014-09-24 Thread Zhan Zhang
: (String,String,String,String) (String,(String,String,String)) -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/sortByKey-trouble-tp14989p15002.html Sent from the Apache Spark User List mailing list archive at Nabble.com