Hi Yanbo,
I'm using java language and the environment is spark 1.4.1.
Can u tell me how to do it more detail , the follows is my code, how can
i save the cov to hdfs file ?
"
RowMatrix mat = new RowMatrix(rows.rdd());
Matrix cov = mat.computeCovariance(); "
The cov is localMatrix, if the Matrix is much more than 5G , is there
any better way to do it.
THX.
------------------ ???????? ------------------
??????: "Yanbo Liang";<[email protected]>;
????????: 2016??1??25??(??????) ????1:31
??????: "zhangjp"<[email protected]>;
????: "user"<[email protected]>;
????: Re: how to save Matrix type result to hdfs file using java
Matrix can be save as column of type MatrixUDT.