Re: How to save a string to a text file ?

2015-08-14 Thread go canal
) anything wrong ? thanks, canal On Saturday, August 15, 2015 11:21 AM, Brandon White wrote: Convert it to a rdd then save the rdd to a file val str = "dank memes"sc.parallelize(List(str)).saveAsTextFile("str.txt") On Fri, Aug 14, 2015 at 7:50 PM, go canal wrote:

How to save a string to a text file ?

2015-08-14 Thread go canal
Hello again,online resources have sample code for writing RDD to a file, but I have a simple string, how to save to a text file ? (my data is a DenseMatrix actually) appreciate any help ! thanks, canal

Re: matrix inverse and multiplication

2015-08-14 Thread go canal
Correction: I am not able to convert the Scala statement to java.

matrix inverse and multiplication

2015-08-13 Thread go canal
Hello,I am new to Spark. I am looking for a matrix inverse and multiplication solution. I did a quick search and found a couple of solutions but my requirements are:- large matrix (up to 2 millions x 2 m)- need to support complex double data type- preferably in Java  There is one post  http://da