You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by William Quinones <wi...@googlemail.com> on 2012/06/18 10:32:28 UTC

Mahout in Action Ch.05 Example

Hello,

I have the same problem as the one mentioned here:
http://www.manning-sandbox.com/thread.jspa?messageID=121711&#121711
There is no web-taste/ folder in the Mahout 0.7 distribution. I did the mvn
package command for the chapter 05 examples and got 3 JAR files:

mia-0.1.jar; mia-0.1-jar-with-dependencies.jar; mia-0.1-job.jar.

So how do I make a WAR out of the mia-0.1.jar? I guessed I have to copy
this JAR into the integration/lib and run mvn package from the integration/
folder, but as you mentioned in that forum thread, there is no build file
and I would need to create my own. Problem is, I have no idea how to make
one and don't really know which files I need to build; all of the
integration files?

I would appreciate your help.

Regards,

William Q.

Re: Mahout in Action Ch.05 Example

Posted by Manuel Blechschmidt <Ma...@gmx.de>.
Hi William,
I recommend that you use the following code as a basis:

https://github.com/ManuelB/facebook-recommender-demo

The following presentation starting at slide 33 explains a little bit how the bundling works:
http://www.slideshare.net/ManuelB86/how-to-build-a-recommender-system-based-on-mahout-and-java-ee


/Manuel

On 18.06.2012, at 10:32, William Quinones wrote:

> Hello,
> 
> I have the same problem as the one mentioned here:
> http://www.manning-sandbox.com/thread.jspa?messageID=121711&#121711
> There is no web-taste/ folder in the Mahout 0.7 distribution. I did the mvn
> package command for the chapter 05 examples and got 3 JAR files:
> 
> mia-0.1.jar; mia-0.1-jar-with-dependencies.jar; mia-0.1-job.jar.
> 
> So how do I make a WAR out of the mia-0.1.jar? I guessed I have to copy
> this JAR into the integration/lib and run mvn package from the integration/
> folder, but as you mentioned in that forum thread, there is no build file
> and I would need to create my own. Problem is, I have no idea how to make
> one and don't really know which files I need to build; all of the
> integration files?
> 
> I would appreciate your help.
> 
> Regards,
> 
> William Q.

-- 
Manuel Blechschmidt
M.Sc. IT Systems Engineering
Dortustr. 57
14467 Potsdam
Mobil: 0173/6322621
Twitter: http://twitter.com/Manuel_B


Re: Mahout in Action Ch.05 Example

Posted by Sean Owen <sr...@gmail.com>.
It wasn't in 0.6 either -- it has since been removed. The book goes with
version 0.5.

Packaging a WAR file is just a matter of constructing a zip file with the
right structure. I can explain it or you can look it up, but if you're
following the book, best to just use 0.5.

Sean

On Mon, Jun 18, 2012 at 9:32 AM, William Quinones <
wilquinavarro@googlemail.com> wrote:

> Hello,
>
> I have the same problem as the one mentioned here:
> http://www.manning-sandbox.com/thread.jspa?messageID=121711&#121711
> There is no web-taste/ folder in the Mahout 0.7 distribution. I did the mvn
> package command for the chapter 05 examples and got 3 JAR files:
>
> mia-0.1.jar; mia-0.1-jar-with-dependencies.jar; mia-0.1-job.jar.
>
> So how do I make a WAR out of the mia-0.1.jar? I guessed I have to copy
> this JAR into the integration/lib and run mvn package from the integration/
> folder, but as you mentioned in that forum thread, there is no build file
> and I would need to create my own. Problem is, I have no idea how to make
> one and don't really know which files I need to build; all of the
> integration files?
>
> I would appreciate your help.
>
> Regards,
>
> William Q.
>