You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Grant Ingersoll <gs...@apache.org> on 2009/02/04 16:49:34 UTC

MAHOUT-104: update

OK, I checked in another interim that does:

1. Separates out Taste WAR and builds  it.  Haven't tested it yet, but  
the structure looks good.
2. Creates the Hadoop JOB jar (core/target, and examples)  Haven't  
tested these yet
3. Deferred gpg signing to deploy.  Not quite sure on this one yet,  
but I don't see a need to sign when just doing an install.

Try doing "mvn install" from the top.  If you want to run the example  
tests, you need to make sure you do "install" in the core directory  
first.

I'll continue tomorrow, but please try things out and give me feedback.

-Grant


Re: MAHOUT-104: update

Posted by Sean Owen <sr...@gmail.com>.
How to build it previously? http://lucene.apache.org/mahout/taste.html
but the only thing you should need is "ant build-grouplens-example",
and looking at the old build file should show what that does. It
really only calls to the war-building target with certain parameters.

That part does indeed belong more with "examples" but whatever's
easiest and reasonable will be fine.

2009/2/5 Grant Ingersoll <gs...@apache.org>:
> OK, I hooked in some more capabilities here, so check it out.  It could still use some documentation on how to build the group lens stuff, but the pieces should be in place, as I added in building the grouplens jar to the examples build.
>

Re: MAHOUT-104: update

Posted by Grant Ingersoll <gs...@apache.org>.
OK, I hooked in some more capabilities here, so check it out.  It  
could still use some documentation on how to build the group lens  
stuff, but the pieces should be in place, as I added in building the  
grouplens jar to the examples build.


On Feb 4, 2009, at 5:01 PM, Sean Owen wrote:

> That just means the parameterization business hasn't been fully  
> ported yet.
> That token should be replaced with the caller-supplied name of  
> Recommender
> to use.
>
> On 4 Feb 2009, 9:55 PM, "Isabel Drost" <is...@apache.org> wrote:
>
> On Wednesday 04 February 2009, Grant Ingersoll wrote: > OK, I  
> checked in
> another interim that does: ...
> The structure looks good, I successfully copied the resulting war into
> tomcat
> and called the app at http://localhost:$port/$name_of_war/ 
> RecommenderServlet
>
> Only problem: Doing so gives me the following exception:
>
> java.lang.ClassNotFoundException: @RECOMMENDER_CLASS@
> org 
> .apache 
> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
> 1362)
> org 
> .apache 
> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
> 1208)
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> java.lang.Class.forName0(Native Method)
> java.lang.Class.forName(Class.java:169)
> org 
> .apache 
> .mahout 
> .cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java: 
> 51)
> org 
> .apache 
> .mahout 
> .cf 
> .taste 
> .web 
> .RecommenderSingleton.initializeIfNeeded(RecommenderSingleton.java:42)
> org 
> .apache 
> .mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java: 
> 76
>
> I suppose I have made some trivial mistake?
>
>> Try doing "mvn install" from the top. If you want to run the  
>> example >
> tests, you need to mak...
> mvn install works fine here.
>
> Big thanks for your work the maven migration and release cleanup,  
> Grant.
>
> Isabel
>
> --
> How much net work could a network work, if a network could net work?
> |\      _,,,---,,_       Web:   <http://www.isabel-drost.de>
> /,`.-'`'    -.  ;-;;,_
> |,4-  ) )-,_..;\ (  `'-'
> '---''(_/--'  `-'\_) (fL)  IM:  <xm...@spaceboyz.net>



Re: MAHOUT-104: update

Posted by Sean Owen <sr...@gmail.com>.
That just means the parameterization business hasn't been fully ported yet.
That token should be replaced with the caller-supplied name of Recommender
to use.

On 4 Feb 2009, 9:55 PM, "Isabel Drost" <is...@apache.org> wrote:

On Wednesday 04 February 2009, Grant Ingersoll wrote: > OK, I checked in
another interim that does: ...
The structure looks good, I successfully copied the resulting war into
tomcat
and called the app at http://localhost:$port/$name_of_war/RecommenderServlet

Only problem: Doing so gives me the following exception:

java.lang.ClassNotFoundException: @RECOMMENDER_CLASS@
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:169)
org.apache.mahout.cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java:51)
org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded(RecommenderSingleton.java:42)
org.apache.mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:76

I suppose I have made some trivial mistake?

> Try doing "mvn install" from the top. If you want to run the example >
tests, you need to mak...
mvn install works fine here.

Big thanks for your work the maven migration and release cleanup, Grant.

Isabel

--
How much net work could a network work, if a network could net work?
 |\      _,,,---,,_       Web:   <http://www.isabel-drost.de>
 /,`.-'`'    -.  ;-;;,_
 |,4-  ) )-,_..;\ (  `'-'
'---''(_/--'  `-'\_) (fL)  IM:  <xm...@spaceboyz.net>

Re: MAHOUT-104: update

Posted by Isabel Drost <is...@apache.org>.
On Wednesday 04 February 2009, Grant Ingersoll wrote:
> OK, I checked in another interim that does:
>
> 1. Separates out Taste WAR and builds  it.  Haven't tested it yet, but
> the structure looks good.

The structure looks good, I successfully copied the resulting war into tomcat 
and called the app at http://localhost:$port/$name_of_war/RecommenderServlet

Only problem: Doing so gives me the following exception: 

java.lang.ClassNotFoundException: @RECOMMENDER_CLASS@
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362) 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208) 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:169) 
org.apache.mahout.cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java:51) 
org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded(RecommenderSingleton.java:42) 
org.apache.mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:76

I suppose I have made some trivial mistake?




> Try doing "mvn install" from the top.  If you want to run the example
> tests, you need to make sure you do "install" in the core directory
> first.

mvn install works fine here.

Big thanks for your work the maven migration and release cleanup, Grant.

Isabel

-- 
How much net work could a network work, if a network could net work?
  |\      _,,,---,,_       Web:   <http://www.isabel-drost.de>
  /,`.-'`'    -.  ;-;;,_
 |,4-  ) )-,_..;\ (  `'-'
'---''(_/--'  `-'\_) (fL)  IM:  <xm...@spaceboyz.net>