|
|
-
Re: Help with running taste-demo on mahout-examples-0.7-SNAPSHOT.jarManuel Blechschmidt 2012-05-19, 10:53
Hello Dhananjay,
my github projects shows how to bundle a recommender as part of a Java EE 6 application. I am also using EJBs as REST and SOAP examples therefore a normal servlet container like Tomcat or Jetty won't be enough to run the example. You will need a complete application server like Glassfish 3 (bundled), JBoss, Weblogic etc. There are a lot of people who would says that they are bloated nevertheless it is quite easy to work with them. So the facebook-recommender-example is not a plain web application it requires at least EJB light support. You can see the basic architecture for the system here: https://github.com/ManuelB/facebook-recommender-demo/blob/master/docs/RecommenderArchitecture.png I would say that it is currently the most complete and easiest example how to use mahout in an own project. It is about 50% Java EE 6, 10% Maven 3 and 40% Mahout. Here are the reasons why I created it: * Current examples do not bundle data (https://github.com/ManuelB/facebook-recommender-demo/blob/master/src/main/resources/DemoFriendsLikes.csv) * Current examples do not offer a lot of interfaces (RMI, SOAP, REST) * Current examples do not work out of the box and require configuration which you can't do if you are not a mahout expert Further I would recommend Mahout in Action http://manning.com/owen/ for more examples. Actually I never read it because it wasn't available yet when I started with mahout. Have a great saturday Manuel On 18.05.2012, at 23:09, Dhananjay Sampath wrote: > Thanks Sean, for the super quick response! > I wish I asked this question 3 days ago ! > > Ok, so I have to package my own recommender. Got it. The only place where I > found some instructions on packaging a (custom/example) recommender is > Manuel's response to Ben on the User archives ( > http://mail-archives.apache.org/mod_mbox/mahout-user/201203.mbox/%[EMAIL PROTECTED]%3E > ). > Is that the best source right now or is there a more recent version of a > How-to for web packaging of a recommender ? > > Again, thanks for your help ! Really appreciate it. > > best, > DJ > > On Fri, May 18, 2012 at 11:12 AM, Sean Owen <[EMAIL PROTECTED]> wrote: > >> (You can use -DskipTests in Maven. You don't need to run the very >> lengthy tests.) >> >> The bad news is that this example only worked in 0.5, and was removed >> in 0.6. The underlying pieces are still there, you just would have to >> assemble the WAR yourself. >> >> I'll try to figure out how to remove this; I didn't know this was >> still posted anywhere. >> >> Sean >> >> On Fri, May 18, 2012 at 7:07 PM, Dhananjay Sampath >> <[EMAIL PROTECTED]> wrote: >>> Hi mahout-devs/mahout-users, >>> >>> I am here stuck on trying to get the mahout taste app demo working and >>> could really use some help. I know that several people have come before >> me >>> asking the same question and I have gone through almost all of them and >>> have met with little success. >>> >>> I followed all of the instructions from ( >>> http://mahout.apache.org/taste.html#demo) and have managed to installed >>> mahout. >>> Upto Step 5 - things are jim and dandy. >>> * Step 5 - runs all of the tests (for hours) but finished without >> creating >>> a grouplens.jar file. >>> >>> ? On step 3 do I have to create that entire directory structure ? No >>> directories after trunk/ exists by default - in which case I believe the >>> document should add that we should create a directory with a mkdir -p >>> command. >>> ? I tried using the mahout-examples-0.7-SNAPSHOT.jar instead of a >>> grouplens.jar in the trunk/examples/target/ directory, as that was the >> only >>> other jar that was created but met with little success. Should I create >> the >>> grouplens.jar somehow? >>> >>> So in short, >>> 1. I created the entire directory structure by hand. >>> 2. Copied the .dat files in to the newly created location. >>> 3. With no grouplens.jar file, I copied mahout-examples.....jar file into Manuel Blechschmidt Dortustr. 57 14467 Potsdam Mobil: 0173/6322621 Twitter: http://twitter.com/Manuel_B |