spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DataNut <robert.mol...@fmr.com>
Subject Error outputing to CSV file
Date Mon, 08 Dec 2014 23:49:59 GMT
I am trying to create a CSV file, I have managed to create the actual string
I want to output to a file, but when I try to write the file, I get the
following error.

/saveAsTextFile is not a member of String/

My string is perfect, when I call this line to actually save the file, I get
the above error.

/val csv = fields.map(_.mkString("|")).mkString("\n")
csv.saveAsSequenceFile("/tmp/mytext")/





--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Error-outputing-to-CSV-file-tp20583.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


Mime
View raw message