Re: Converting matrix format

2014-07-30 Thread Chengi Liu
Thanks.. What if its a big matrix.. like billions rows million columns On Wednesday, July 30, 2014, Davies Liu wrote: > It will depends on the size of your matrix. If it can fit in memory, > then you can > > sparse = sparse_matrix(matrix) # sparse_matrix is the function you had > written > sc.par

Re: Converting matrix format

2014-07-30 Thread Davies Liu
It will depends on the size of your matrix. If it can fit in memory, then you can sparse = sparse_matrix(matrix) # sparse_matrix is the function you had written sc.parallelize(sparse, NUM_OF_PARTITIONS) On Tue, Jul 29, 2014 at 11:39 PM, Chengi Liu wrote: > Hi, > I have an rdd with n rows and