I'd recommend using the built-in save and load, which will be better for
cross-version compatibility. You should be able to call
myModel.save(path), and load it back with
MatrixFactorizationModel.load(path).
On Mon, Aug 17, 2015 at 6:31 AM, Madawa Soysa madawa...@cse.mrt.ac.lk
wrote:
Hi All,
I have an issue when i try to serialize a MatrixFactorizationModel object
as a java object in a Java application. When I deserialize the object, I
get the following exception.
Caused by: java.lang.ClassNotFoundException:
org.apache.spark.OneToOneDependency cannot be found by
org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a39653b
Any solution for this?
--
*_**Madawa Soysa*
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.
Mobile: +94 71 461 6050 %2B94%2075%20812%200726 | Email:
madawa...@cse.mrt.ac.lk
LinkedIn http://lk.linkedin.com/in/madawasoysa | Twitter
https://twitter.com/madawa_rc | Tumblr http://madawas.tumblr.com/