spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Bradley <jos...@databricks.com>
Subject Re: Serializing MLlib MatrixFactorizationModel
Date Tue, 18 Aug 2015 00:52:59 GMT
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.11@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.11@cse.mrt.ac.lk
> LinkedIn <http://lk.linkedin.com/in/madawasoysa> | Twitter
> <https://twitter.com/madawa_rc> | Tumblr <http://madawas.tumblr.com/>
>

Mime
View raw message