While continuing the study of mahout, it is inevitable to write code that uses the various algorithms stored with it. So I asked a colleague to help out and one option was to start with a java wicket found here: http://blog.jteam.nl/wp-content/uploads/2010/04/taste-getting-started.zip
Using it is quite straightforward. Download the zip file. Unzip it to some folder (say taste-getting-started in the mahout machine). Using Ubuntu’s Terminal application, go to that folder and run mvn package. After packaging is complete, run mvn jetty:run-war. Once the jetty server is up, you can make use of the wicket by browsing http://localhost:8080/taste-getting-started/movies.
Although the above is the straightforward usage of the said wicket, setting it up requires some effort such as
- downloading the MovieLens’ 100K Ratings Data Set: http://grouplens.org/system/files/ml-data_0.zip
- Unzipping it to some other folder.
- Copying u.data to taste-getting-started/src/main/resources/grouplens/100K/ratings
- Copying u.item to taste-getting-started/src/main/resources/grouplens/100K/data
- Executing the initialize_movielens_db.sql using the following command mysql --user=mysqluser --password=mysqlpassword < initialize_movielens_db.sql while at the taste-getting-started/src/main/resources/sql folder.
Oh and if you do not have MySQL yet, install it by issuing the following command sudo apt-get install mysql-server mysql-client.