Re: Error outputing to CSV file

2014-12-11 Thread Muhammad Ahsan
Hi saveAsTextFile is a member of RDD where as fields.map(_.mkString("|")).mkString("\n") is a string. You have to transform it into RDD using something like sc.parallel(...) before saveAsTextFile. Thanks -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/E

Re: Error outputing to CSV file

2014-12-10 Thread manasdebashiskar
saveAsSequenceFile method works on rdd. your object csv is a String. If you are using spark-shell you can type your object to know it's datatype. Some prefer eclipse(and it's intelli) to make their live easier. ..Manas - Manas Kar -- View this message in context: http://apache-spark-user-l