Transfer from RDD to JavaRDD

2014-12-05 Thread Xingwei Yang
I use Spark in Java. I want to access the vectors of RowMatrix M, thus I use M.rows(), which is a RDDVector I want to transform it to JavaRDDVector, I used the following command; JavaRDDVector data = JavaRDD.fromRDD(M.rows(), scala.reflect.ClassTag$.MODULE$.apply(Vector.class); However, it

Re: Transfer from RDD to JavaRDD

2014-12-05 Thread Sean Owen
You can probably get around it with casting, but I ended up using wrapRDD -- which is not a static method -- from another JavaRDD in scope to address this more directly without casting or warnings. It's not ideal but both should work, just a matter of which you think is less hacky. On Fri, Dec 5,