:) Actually we are thinking in this line. We have few other columns to store some metadata around this BLOB/CLOB. Like id, foreign key etc.,
Now if we are doing ETL, we need to have a csv or some file, containing all these columns. We cannot have blob / binary object embedded in this text file. So I was looking for a String based serialize solution. So until we find a cleaner solution, we are going with encoding the java serialized binary object with Base64 and uploading it via ETL with other text fields. Imagine if we had a String based serializing feature, we could have simplified the solution. I guess serializing is not that straight forward with complex math models, so it is not implemented. I am sure there is better way. Any thoughts / ideas to simplify our approach is greatly appreciated. Thanks On Sun, Mar 31, 2013 at 7:18 PM, Suneel Marthi <[email protected]>wrote: > .... how about persisting the model itself into an Oracle column as a > BLOB and have the AppServer read > the model from the database. This way if the model gets updated, then all > the applications would be reading off of the same model. > > > > > > ________________________________ > From: Arun Avanathan <[email protected]> > To: [email protected]; Suneel Marthi <[email protected]> > Sent: Sunday, March 31, 2013 9:47 PM > Subject: Re: ModelSerializer.writeToJson() > > Idea is to ETL the serialized models on a schedule basis from one > application to another. War/Jar approach is another way of doing, but it > needs shipping jars + the metadata around them by ETL. > > > We use Oracle DB for this & it is getting a bit messy uploading these via > SQLLoader to DB. Am looking for simpler options :) > > Thanks > > > On Sun, Mar 31, 2013 at 6:41 PM, Suneel Marthi <[email protected] > >wrote: > > > Why would you want to do that? Isn't it easier to just package the model > > into your application war/jar and read the same a s ResourceStream as > > opposed to what you are proposing? > > > > > > > > ________________________________ > > From: Arun Avanathan <[email protected]> > > To: [email protected] > > Sent: Sunday, March 31, 2013 8:04 PM > > Subject: ModelSerializer.writeToJson() > > > > All, > > > > I'm new to Mahout. So please bear with my dumb question. > > > > In 0.4 we had writeToJson() method, but I don't see it in 0.7 version. Is > > there a way to serialize Models in json format? Idea is to store them in > > Database & rebuild the models when the application server comes up. > > > > Thanks > > Arun > > >
