removing first record from RDD[String]

2014-12-23 Thread Hafiz Mujadid
hi dears! Is there some efficient way to drop first line of an RDD[String]? any suggestion? Thanks -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/removing-first-record-from-RDD-String-tp20834.html Sent from the Apache Spark User List mailing list

Re: removing first record from RDD[String]

2014-12-23 Thread Jörg Schad
) Thus, you don't need to filter on the whole RDD. Good luck. Hao -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/removing-first-record-from-RDD-String-tp20834p20836.html Sent from the Apache Spark User List mailing list archive at Nabble.com

Re: removing first record from RDD[String]

2014-12-23 Thread Erik Erlandson
) = if (i == 0 iterator.hasNext) { iterator.next iterator } else iterator) Thus, you don't need to filter on the whole RDD. Good luck. Hao -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/removing-first-record-from-RDD-String

Re: removing first record from RDD[String]

2014-12-23 Thread Michael Quinlan
? Thanks -- If you reply to this email, your message will be added to the discussion below: http://apache-spark-user-list.1001560.n3.nabble.com/removing-first-record-from-RDD-String-tp20834.html To unsubscribe from Apache Spark User List, click here http://apache

Re: removing first record from RDD[String]

2014-12-23 Thread Hafiz Mujadid
yep Michael Quinlan,it's working as suggested by Hoe Ren thansk to you and Hoe Ren -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/removing-first-record-from-RDD-String-tp20834p20840.html Sent from the Apache Spark User List mailing list archive