mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Roberson <recom.t...@gmail.com>
Subject Re: Problem building Taste grouplens Demo
Date Tue, 03 Mar 2009 23:42:31 GMT
Using mvn install solved the build errors.

The following was the built output:

 Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Mahout core ........................................... SUCCESS
[9:30.798s]
[INFO] Mahout Taste Webapp ................................... SUCCESS
[10.093s]
[INFO] Mahout examples ....................................... SUCCESS
[20:04.029s]
[INFO] Apache Lucene Mahout .................................. SUCCESS
[2:39.508s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL

However, now I am trying to build the GroupLens demo following the
instructions in the Taste Documentation
and have the following errors:

Do I need to modify the taste-build.xml file in the core directory to
resolve these dependencies???
Or should I use Maven to build the GroupLens demo???

-- Matthew

recom@bharadhwaj-desktop:~/RecomWorkspace/trunk/core$ ant -f taste-build.xml
build-grouplens-example
Buildfile: taste-build.xml

init:

build-grouplens-example:
    [javac] Compiling 5 source files to
/home/recom/RecomWorkspace/trunk/core/build
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:20:
package org.apache.mahout.cf.taste.impl.common does not exist
    [javac] import org.apache.mahout.cf.taste.impl.common.FastMap;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:21:
package org.apache.mahout.cf.taste.impl.common does not exist
    [javac] import org.apache.mahout.cf.taste.impl.common.FileLineIterable;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:22:
package org.apache.mahout.cf.taste.impl.common does not exist
    [javac] import org.apache.mahout.cf.taste.impl.common.IOUtils;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:23:
package org.apache.mahout.cf.taste.impl.model.file does not exist
    [javac] import org.apache.mahout.cf.taste.impl.model.file.FileDataModel;
    [javac]                                                  ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:24:
package org.apache.mahout.cf.taste.model does not exist
    [javac] import org.apache.mahout.cf.taste.model.Item;
    [javac]                                        ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:37:
cannot find symbol
    [javac] symbol: class FileDataModel
    [javac] public final class GroupLensDataModel extends FileDataModel {
    [javac]                                               ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/Movie.java:20:
package org.apache.mahout.cf.taste.impl.model does not exist
    [javac] import org.apache.mahout.cf.taste.impl.model.GenericItem;
    [javac]                                             ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/Movie.java:22:
cannot find symbol
    [javac] symbol: class GenericItem
    [javac] final class Movie extends GenericItem<String> {
    [javac]                           ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:58:
cannot find symbol
    [javac] symbol  : class Item
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]   protected Item buildItem(String id) {
    [javac]             ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:20:
package org.apache.mahout.cf.taste.common does not exist
    [javac] import org.apache.mahout.cf.taste.common.Refreshable;
    [javac]                                         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:21:
package org.apache.mahout.cf.taste.common does not exist
    [javac] import org.apache.mahout.cf.taste.common.TasteException;
    [javac]                                         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:22:
package org.apache.mahout.cf.taste.impl.recommender does not exist
    [javac] import
org.apache.mahout.cf.taste.impl.recommender.CachingRecommender;
    [javac]                                                   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:23:
package org.apache.mahout.cf.taste.impl.recommender.slopeone does not exist
    [javac] import
org.apache.mahout.cf.taste.impl.recommender.slopeone.SlopeOneRecommender;
    [javac]                                                            ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:24:
package org.apache.mahout.cf.taste.model does not exist
    [javac] import org.apache.mahout.cf.taste.model.DataModel;
    [javac]                                        ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:25:
package org.apache.mahout.cf.taste.model does not exist
    [javac] import org.apache.mahout.cf.taste.model.Item;
    [javac]                                        ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:26:
package org.apache.mahout.cf.taste.recommender does not exist
    [javac] import org.apache.mahout.cf.taste.recommender.RecommendedItem;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:27:
package org.apache.mahout.cf.taste.recommender does not exist
    [javac] import org.apache.mahout.cf.taste.recommender.Recommender;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:28:
package org.apache.mahout.cf.taste.recommender does not exist
    [javac] import org.apache.mahout.cf.taste.recommender.Rescorer;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:37:
cannot find symbol
    [javac] symbol: class Recommender
    [javac] public final class GroupLensRecommender implements Recommender {
    [javac]                                                    ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:39:
cannot find symbol
    [javac] symbol  : class Recommender
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   private final Recommender recommender;
    [javac]                 ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:45:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public GroupLensRecommender() throws IOException,
TasteException {
    [javac]                                                     ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:56:
cannot find symbol
    [javac] symbol  : class DataModel
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public GroupLensRecommender(DataModel dataModel) throws
TasteException {
    [javac]                               ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:56:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public GroupLensRecommender(DataModel dataModel) throws
TasteException {
    [javac]                                                           ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:61:
cannot find symbol
    [javac] symbol  : class RecommendedItem
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public List<RecommendedItem> recommend(Object userID, int
howMany) throws TasteException {
    [javac]               ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:61:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public List<RecommendedItem> recommend(Object userID, int
howMany) throws TasteException {

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:66:
cannot find symbol
    [javac] symbol  : class Rescorer
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public List<RecommendedItem> recommend(Object userID, int
howMany, Rescorer<Item> rescorer)

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:66:
cannot find symbol
    [javac] symbol  : class Item
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public List<RecommendedItem> recommend(Object userID, int
howMany, Rescorer<Item> rescorer)

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:66:
cannot find symbol
    [javac] symbol  : class RecommendedItem
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public List<RecommendedItem> recommend(Object userID, int
howMany, Rescorer<Item> rescorer)
    [javac]               ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:67:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]           throws TasteException {
    [javac]                  ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:72:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public double estimatePreference(Object userID, Object itemID)
throws TasteException {

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:77:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public void setPreference(Object userID, Object itemID, double
value) throws TasteException {

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:82:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public void removePreference(Object userID, Object itemID)
throws TasteException {

[javac]
^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:87:
cannot find symbol
    [javac] symbol  : class DataModel
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public DataModel getDataModel() {
    [javac]          ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:92:
cannot find symbol
    [javac] symbol  : class Refreshable
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]   public void refresh(Collection<Refreshable> alreadyRefreshed)
{
    [javac]                                  ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:20:
package org.apache.mahout.cf.taste.common does not exist
    [javac] import org.apache.mahout.cf.taste.common.TasteException;
    [javac]                                         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:21:
package org.apache.mahout.cf.taste.eval does not exist
    [javac] import org.apache.mahout.cf.taste.eval.RecommenderBuilder;
    [javac]                                       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:22:
package org.apache.mahout.cf.taste.model does not exist
    [javac] import org.apache.mahout.cf.taste.model.DataModel;
    [javac]                                        ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:23:
package org.apache.mahout.cf.taste.recommender does not exist
    [javac] import org.apache.mahout.cf.taste.recommender.Recommender;
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:25:
cannot find symbol
    [javac] symbol: class RecommenderBuilder
    [javac] final class GroupLensRecommenderBuilder implements
RecommenderBuilder {
    [javac]                                                    ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:28:
cannot find symbol
    [javac] symbol  : class DataModel
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderBuilder
    [javac]   public Recommender buildRecommender(DataModel dataModel)
throws TasteException {
    [javac]                                       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:28:
cannot find symbol
    [javac] symbol  : class Recommender
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderBuilder
    [javac]   public Recommender buildRecommender(DataModel dataModel)
throws TasteException {
    [javac]          ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:28:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderBuilder
    [javac]   public Recommender buildRecommender(DataModel dataModel)
throws TasteException {

[javac]                                                                   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:20:
package org.apache.mahout.cf.taste.common does not exist
    [javac] import org.apache.mahout.cf.taste.common.TasteException;
    [javac]                                         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:21:
package org.apache.mahout.cf.taste.eval does not exist
    [javac] import org.apache.mahout.cf.taste.eval.RecommenderEvaluator;
    [javac]                                       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:22:
package org.apache.mahout.cf.taste.impl.eval does not exist
    [javac] import
org.apache.mahout.cf.taste.impl.eval.AverageAbsoluteDifferenceRecommenderEvaluator;
    [javac]                                            ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:23:
package org.slf4j does not exist
    [javac] import org.slf4j.Logger;
    [javac]                 ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:24:
package org.slf4j does not exist
    [javac] import org.slf4j.LoggerFactory;
    [javac]                 ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:34:
cannot find symbol
    [javac] symbol  : class Logger
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner
    [javac]   private static final Logger log =
LoggerFactory.getLogger(GroupLensRecommenderEvaluatorRunner.class);
    [javac]                        ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:40:
cannot find symbol
    [javac] symbol  : class TasteException
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner
    [javac]   public static void main(String... args) throws IOException,
TasteException {
    [javac]                                                               ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:39:
type parameter org.apache.mahout.cf.taste.example.grouplens.Movie is not
within its bound
    [javac]   private Map<String, Movie> movieMap;
    [javac]                       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:59:
cannot find symbol
    [javac] symbol  : class Item
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]     Item item = movieMap.get(id);
    [javac]     ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:57:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:74:
cannot find symbol
    [javac] symbol  : class FastMap
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]     movieMap = new FastMap<String, Movie>(5001);
    [javac]                    ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:75:
cannot find symbol
    [javac] symbol  : class FileLineIterable
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]     for (String line : new FileLineIterable(convertedMoviesFile,
false)) {
    [javac]                            ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:80:
cannot find symbol
    [javac] symbol  : variable super
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]     super.reload();
    [javac]     ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:66:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:92:
cannot find symbol
    [javac] symbol  : class FileLineIterable
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]         for (String line : new FileLineIterable(originalFile,
false)) {
    [javac]                                ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:107:
cannot find symbol
    [javac] symbol  : variable IOUtils
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]         IOUtils.quietClose(writer);
    [javac]         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:131:
cannot find symbol
    [javac] symbol  : variable IOUtils
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]         IOUtils.quietClose(os);
    [javac]         ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:134:
cannot find symbol
    [javac] symbol  : variable IOUtils
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel
    [javac]       IOUtils.quietClose(is);
    [javac]       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java:139:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/Movie.java:35:
cannot find symbol
    [javac] symbol  : method getID()
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.Movie
    [javac]     return getID().toString() + '\t' + movieTitle + '\t' +
genres;
    [javac]            ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/Movie.java:35:
operator + cannot be applied to getID.toString,char
    [javac]     return getID().toString() + '\t' + movieTitle + '\t' +
genres;
    [javac]                            ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/Movie.java:33:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:57:
cannot find symbol
    [javac] symbol  : class CachingRecommender
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]     recommender = new CachingRecommender(new
SlopeOneRecommender(dataModel));
    [javac]                       ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:57:
cannot find symbol
    [javac] symbol  : class SlopeOneRecommender
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
    [javac]     recommender = new CachingRecommender(new
SlopeOneRecommender(dataModel));
    [javac]                                              ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:60:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:65:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:71:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:76:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:81:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:86:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommender.java:91:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderBuilder.java:27:
method does not override or implement a method from a supertype
    [javac]   @Override
    [javac]   ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:34:
cannot find symbol
    [javac] symbol  : variable LoggerFactory
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner
    [javac]   private static final Logger log =
LoggerFactory.getLogger(GroupLensRecommenderEvaluatorRunner.class);
    [javac]                                     ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:41:
cannot find symbol
    [javac] symbol  : class RecommenderEvaluator
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner
    [javac]     RecommenderEvaluator evaluator = new
AverageAbsoluteDifferenceRecommenderEvaluator();
    [javac]     ^
    [javac]
/home/recom/RecomWorkspace/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java:41:
cannot find symbol
    [javac] symbol  : class AverageAbsoluteDifferenceRecommenderEvaluator
    [javac] location: class
org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner
    [javac]     RecommenderEvaluator evaluator = new
AverageAbsoluteDifferenceRecommenderEvaluator();
    [javac]                                          ^
    [javac] 77 errors

BUILD FAILED
/home/recom/RecomWorkspace/trunk/core/taste-build.xml:97: Compile failed;
see the compiler error output for details.

Total time: 2 seconds
recom@bharadhwaj-desktop:~/RecomWorkspace/trunk/core$



On Tue, Mar 3, 2009 at 2:13 PM, Grant Ingersoll <gsingers@apache.org> wrote:

> Try doing "mvn install" from the top, or from the core directory first.
>
> I'll update the wiki
>
>
>
>
> On Mar 3, 2009, at 4:02 PM, Matthew Roberson wrote:
>
>  SVN trunk details:
>> Last Modified Date: Sat Feb 28 05:31:31 MST 2009
>> Revision: 749544
>>
>> I attempted to do a clean build...
>>
>> When attempting to build the Mahout examples using mvn compile, I get the
>> following error:
>>
>> Missing:
>> ----------
>> 1) org.apache.mahout:mahout-core:jar:0.2-SNAPSHOT
>>
>> How is this issue resolved???
>>
>> -- Matthew
>>
>>
>> On Mon, Mar 2, 2009 at 5:18 PM, Grant Ingersoll <gsingers@apache.org>
>> wrote:
>>
>>  Fill out the values of the recommender.properties file in the taste-web
>>> directory and it should set the web.xml correctly.  Of course, you will
>>> need
>>> to make sure that the class is available.
>>>
>>> Also, are you sure you're on the latest trunk of Mahout?  What's "svn
>>> info"
>>> return in the taste-web directory?
>>>
>>>
>>>
>>>
>>> On Mar 2, 2009, at 6:20 PM, Sean Owen wrote:
>>>
>>> Yes perhaps the Maven-conversion crew can comment on how you pass
>>>
>>>> params to the build -- I think this part was brought over?
>>>>
>>>> Basically you need to fill in the name of your Recommender class
>>>> implementation in web.xml -- you see the placeholder
>>>> ${recommender.class}? The old script took this as a command line param
>>>> and I believe the new one has a similar mechanism.
>>>>
>>>> I think for now you could just edit web.xml manually to achieve the same
>>>> thing.
>>>>
>>>> On Mon, Mar 2, 2009 at 11:11 PM, Matthew Roberson <recom.team@gmail.com
>>>> >
>>>> wrote:
>>>>
>>>>  Have installed and built mahout following the directions @
>>>>> cwiki.apache.org/MAHOUT
>>>>>
>>>>> Wanted to run the Taste demo from Apache Taste Documentation: grouplens
>>>>> demo.
>>>>>
>>>>> Successfully built the example web application: mahout-taste.war using
>>>>> ant.
>>>>>
>>>>> However, when trying to run web application in Tomcat, I get the
>>>>> following error:
>>>>> HTTP Status 500 -
>>>>>
>>>>>
>>>>> ________________________________________________________________________
>>>>>
>>>>> type Exception report
>>>>>
>>>>> message
>>>>>
>>>>> description The server encountered an internal error () that prevented
>>>>> it from fulfilling this request.
>>>>>
>>>>> exception
>>>>>
>>>>> javax.servlet.ServletException:
>>>>> org.apache.mahout.cf.taste.common.TasteException:
>>>>> java.lang.ClassNotFoundException: ${recommender.class}
>>>>>
>>>>>
>>>>>
>>>>> org.apache.mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:78)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>>    java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> root cause
>>>>>
>>>>> org.apache.mahout.cf.taste.common.TasteException:
>>>>> java.lang.ClassNotFoundException: ${recommender.class}
>>>>>
>>>>>
>>>>>
>>>>> org.apache.mahout.cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java:53)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded(RecommenderSingleton.java:42)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:76)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>>    java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> root cause
>>>>>
>>>>> java.lang.ClassNotFoundException: ${recommender.class}
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>>>>>    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)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>>>>
>>>>>
>>>>>
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>>    java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> note The full stack trace of the root cause is available in the Apache
>>>>> Tomcat/6.0.18 logs.
>>>>>
>>>>>
>>>>>
>>>>> ________________________________________________________________________
>>>>> Apache Tomcat/6.0.18
>>>>>
>>>>> I am new to this and have not been able to resolve this problem...
>>>>>
>>>>> Can anyone help???
>>>>>
>>>>>
>>>>>  --------------------------
>>> Grant Ingersoll
>>> http://www.lucidimagination.com/
>>>
>>> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using
>>> Solr/Lucene:
>>> http://www.lucidimagination.com/search
>>>
>>>
>>>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
>
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using
> Solr/Lucene:
> http://www.lucidimagination.com/search
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message