Hi Joseph,

I have used the built in save as you suggested. The directory gets created
but the complete model doesn't gets written to the file. Only a part of the
model gets written to the file. Please find the attached part that was
written when tested with the above method.

On 18 August 2015 at 06:22, Joseph Bradley <jos...@databricks.com> wrote:

> 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/>
>>
>
>


-- 

*_________________________________**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/>

Attachment: part-00000
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to