You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Yang <te...@gmail.com> on 2011/10/21 00:41:48 UTC
help with the "tutorial" examples
in the recommendation examples
https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
it mentions the "-i input_file " parameter,
but the downloaded movie-lens dataset is a zip, and contains multiple
.dat files, which one should I use?
Thanks
Yang
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
thanks!
On Thu, Oct 20, 2011 at 4:38 PM, Lance Norskog <go...@gmail.com> wrote:
> ratings.dat is the file you want. users.dat and movies.dat are metadata
> file, describing various facts about each user and genre data for each
> movie. The first column of ratings.dat is the user number, and the second
> column is the item number.
>
> On Thu, Oct 20, 2011 at 3:41 PM, Yang <te...@gmail.com> wrote:
>
>> in the recommendation examples
>>
>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>
>> it mentions the "-i input_file " parameter,
>>
>> but the downloaded movie-lens dataset is a zip, and contains multiple
>> .dat files, which one should I use?
>>
>> Thanks
>> Yang
>>
>
>
>
> --
> Lance Norskog
> goksron@gmail.com
>
Re: help with the "tutorial" examples
Posted by Lance Norskog <go...@gmail.com>.
ratings.dat is the file you want. users.dat and movies.dat are metadata
file, describing various facts about each user and genre data for each
movie. The first column of ratings.dat is the user number, and the second
column is the item number.
On Thu, Oct 20, 2011 at 3:41 PM, Yang <te...@gmail.com> wrote:
> in the recommendation examples
>
> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>
> it mentions the "-i input_file " parameter,
>
> but the downloaded movie-lens dataset is a zip, and contains multiple
> .dat files, which one should I use?
>
> Thanks
> Yang
>
--
Lance Norskog
goksron@gmail.com
Re: help with the "tutorial" examples
Posted by Sean Owen <sr...@gmail.com>.
I think it's pretty self explanatory that the Netflix example requires
the Netflix data set, and Grouplens requires Grouplens. You are
welcome to edit the wiki to add more detail if you desire.
On Fri, Oct 21, 2011 at 9:59 PM, Yang <te...@gmail.com> wrote:
> could you please give a list (or document in wiki, or I could edit it
> ), which mvn exec job requires exactly which file?
>
> thanks
> Yang
>
Re: help with the "tutorial" examples
Posted by Sean Owen <sr...@gmail.com>.
It is a 600MB data set -- it is definitely not distributed with
Mahout. In fact, it is not distributed by Netflix anymore, due to a
lawsuit. If you can find a copy of it somewhere, perhaps you can use
it.
You might take some time to explore the code and read about these data
sets. I think you will get more out of it by exploring rather than
sending 10 e-mails in an hour to the user@ list. He helps those who
helps himself...
On Fri, Oct 21, 2011 at 10:06 PM, Yang <te...@gmail.com> wrote:
> sorry I'm new to mahout, but could you point out where is the "netflix
> dataset " ? the wiki does not show it, nor can I find it in the source
> code:
>
> $ find .. -iname "*netflix*" |grep -v '\.svn' |grep -v \.class
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderBuilder.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixDataModel.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommender.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderEvaluatorRunner.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixFileDataModel.java
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
actually this link is broken
On Fri, Oct 21, 2011 at 2:07 PM, Yang <te...@gmail.com> wrote:
> ok, this one?
>
> https://cwiki.apache.org/confluence/display/MAHOUT/Collections
>
> would have been better if it's linked to the "Getting Started " steps
>
> On Fri, Oct 21, 2011 at 2:06 PM, Yang <te...@gmail.com> wrote:
>> sorry I'm new to mahout, but could you point out where is the "netflix
>> dataset " ? the wiki does not show it, nor can I find it in the source
>> code:
>>
>> $ find .. -iname "*netflix*" |grep -v '\.svn' |grep -v \.class
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderBuilder.java
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixDataModel.java
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommender.java
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderEvaluatorRunner.java
>> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixFileDataModel.java
>>
>>
>>
>>
>> On Fri, Oct 21, 2011 at 2:03 PM, Sean Owen <sr...@gmail.com> wrote:
>>> Again -- wrong input file. See Lance's message to you, which
>>> specifically noted that it's ratings.dat, not movies.dat, that you
>>> need to feed. I think that's also pretty self-evident that you feed
>>> ratings to the recommender. The error also clearly shows it's trying
>>> to parse movie-related strings as input, which is another clue.
>>>
>>> On Fri, Oct 21, 2011 at 10:01 PM, Yang <te...@gmail.com> wrote:
>>>> just tried the grouplens one, got some new errors:
>>>>
>>>>
>>>> $ mvn -X -e -q exec:java
>>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
>>>> -Dexec.args="-i
>>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m/movies.dat"
>>>>
>>>>
>>>>
>>>> [DEBUG] joining on thread
>>>> Thread[org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner]
>>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>>> 11/10/21 14:00:20 INFO file.FileDataModel: Creating FileDataModel for
>>>> file /tmp/ratings.txt
>>>> 11/10/21 14:00:20 INFO file.FileDataModel: Reading file info...
>>>> [INFO] ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] An exception occured while executing the Java class. null
>>>>
>>>> For input string: "Toy Story (1995)"
>>>> [INFO] ------------------------------------------------------------------------
>>>> [DEBUG] Trace
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>>> occured while executing the Java class. null
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>>> exception occured while executing the Java class. null
>>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>> ... 17 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>>> at java.lang.Thread.run(Thread.java:679)
>>>> Caused by: java.lang.NumberFormatException: For input string: "Toy Story (1995)"
>>>> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>>>> at java.lang.Long.parseLong(Long.java:438)
>>>> at java.lang.Long.parseLong(Long.java:478)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.readItemIDFromString(FileDataModel.java:616)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLineWithoutID(FileDataModel.java:545)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFileWithoutID(FileDataModel.java:519)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:261)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:207)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:193)
>>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148)
>>>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.<init>(GroupLensDataModel.java:51)
>>>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(GroupLensRecommenderEvaluatorRunner.java:47)
>>>> ... 6 more
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] Total time: 2 seconds
>>>> [INFO] Finished at: Fri Oct 21 14:00:20 PDT 2011
>>>> [INFO] Final Memory: 23M/127M
>>>> [INFO] ------------------------------------------------------------------------
>>>>
>>>>
>>>> On Fri, Oct 21, 2011 at 1:59 PM, Yang <te...@gmail.com> wrote:
>>>>> could you please give a list (or document in wiki, or I could edit it
>>>>> ), which mvn exec job requires exactly which file?
>>>>>
>>>>> thanks
>>>>> Yang
>>>>>
>>>>> On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
>>>>>> Um, you are running the Netflix example on the GroupLens data set. Of
>>>>>> course this doesn't work.
>>>>>>
>>>>>> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>>>>>>> I got the following errors when running:
>>>>>>>
>>>>>>> $ mvn -X -e -q exec:java
>>>>>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>>>>>>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> [DEBUG] joining on thread
>>>>>>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>>>>>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>>>>>>> NetflixDataModel for directory:
>>>>>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>>>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>> [ERROR] BUILD ERROR
>>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>> [INFO] An exception occured while executing the Java class. null
>>>>>>>
>>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>> [DEBUG] Trace
>>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>>>>>> occured while executing the Java class. null
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>>>>>> exception occured while executing the Java class. null
>>>>>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>>>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>>>>> ... 17 more
>>>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>>>>>> at java.lang.Thread.run(Thread.java:679)
>>>>>>> Caused by: java.lang.NullPointerException
>>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>>>>>>> ... 6 more
>>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>> [INFO] Total time: 2 seconds
>>>>>>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>>>>>>> [INFO] Final Memory: 23M/127M
>>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>>>>>>> It depends on which example you are running! For GroupLens, yes, it's
>>>>>>>> the movies.dat file.
>>>>>>>>
>>>>>>>> I will warn you that I think the various GroupLens data sets have
>>>>>>>> different input formats. Some are comma-separated, which is what you
>>>>>>>> need, and some are separated by "::". Open the file and look. If it is
>>>>>>>> the latter, you need to change it to comma-separated form.
>>>>>>>>
>>>>>>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>>>>>>> in the recommendation examples
>>>>>>>>>
>>>>>>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>>>>>>
>>>>>>>>> it mentions the "-i input_file " parameter,
>>>>>>>>>
>>>>>>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>>>>>>> .dat files, which one should I use?
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Yang
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> how do I debug this?
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
ok, this one?
https://cwiki.apache.org/confluence/display/MAHOUT/Collections
would have been better if it's linked to the "Getting Started " steps
On Fri, Oct 21, 2011 at 2:06 PM, Yang <te...@gmail.com> wrote:
> sorry I'm new to mahout, but could you point out where is the "netflix
> dataset " ? the wiki does not show it, nor can I find it in the source
> code:
>
> $ find .. -iname "*netflix*" |grep -v '\.svn' |grep -v \.class
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderBuilder.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixDataModel.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommender.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderEvaluatorRunner.java
> ../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixFileDataModel.java
>
>
>
>
> On Fri, Oct 21, 2011 at 2:03 PM, Sean Owen <sr...@gmail.com> wrote:
>> Again -- wrong input file. See Lance's message to you, which
>> specifically noted that it's ratings.dat, not movies.dat, that you
>> need to feed. I think that's also pretty self-evident that you feed
>> ratings to the recommender. The error also clearly shows it's trying
>> to parse movie-related strings as input, which is another clue.
>>
>> On Fri, Oct 21, 2011 at 10:01 PM, Yang <te...@gmail.com> wrote:
>>> just tried the grouplens one, got some new errors:
>>>
>>>
>>> $ mvn -X -e -q exec:java
>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
>>> -Dexec.args="-i
>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m/movies.dat"
>>>
>>>
>>>
>>> [DEBUG] joining on thread
>>> Thread[org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner]
>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>> 11/10/21 14:00:20 INFO file.FileDataModel: Creating FileDataModel for
>>> file /tmp/ratings.txt
>>> 11/10/21 14:00:20 INFO file.FileDataModel: Reading file info...
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] An exception occured while executing the Java class. null
>>>
>>> For input string: "Toy Story (1995)"
>>> [INFO] ------------------------------------------------------------------------
>>> [DEBUG] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>> occured while executing the Java class. null
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>> exception occured while executing the Java class. null
>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>> ... 17 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>> at java.lang.Thread.run(Thread.java:679)
>>> Caused by: java.lang.NumberFormatException: For input string: "Toy Story (1995)"
>>> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>>> at java.lang.Long.parseLong(Long.java:438)
>>> at java.lang.Long.parseLong(Long.java:478)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.readItemIDFromString(FileDataModel.java:616)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLineWithoutID(FileDataModel.java:545)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFileWithoutID(FileDataModel.java:519)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:261)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:207)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:193)
>>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148)
>>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.<init>(GroupLensDataModel.java:51)
>>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(GroupLensRecommenderEvaluatorRunner.java:47)
>>> ... 6 more
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 2 seconds
>>> [INFO] Finished at: Fri Oct 21 14:00:20 PDT 2011
>>> [INFO] Final Memory: 23M/127M
>>> [INFO] ------------------------------------------------------------------------
>>>
>>>
>>> On Fri, Oct 21, 2011 at 1:59 PM, Yang <te...@gmail.com> wrote:
>>>> could you please give a list (or document in wiki, or I could edit it
>>>> ), which mvn exec job requires exactly which file?
>>>>
>>>> thanks
>>>> Yang
>>>>
>>>> On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
>>>>> Um, you are running the Netflix example on the GroupLens data set. Of
>>>>> course this doesn't work.
>>>>>
>>>>> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>>>>>> I got the following errors when running:
>>>>>>
>>>>>> $ mvn -X -e -q exec:java
>>>>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>>>>>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> [DEBUG] joining on thread
>>>>>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>>>>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>>>>>> NetflixDataModel for directory:
>>>>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>> [ERROR] BUILD ERROR
>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>> [INFO] An exception occured while executing the Java class. null
>>>>>>
>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>> [DEBUG] Trace
>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>>>>> occured while executing the Java class. null
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>>>>> exception occured while executing the Java class. null
>>>>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>>>> ... 17 more
>>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>>>>> at java.lang.Thread.run(Thread.java:679)
>>>>>> Caused by: java.lang.NullPointerException
>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>>>>>> ... 6 more
>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>> [INFO] Total time: 2 seconds
>>>>>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>>>>>> [INFO] Final Memory: 23M/127M
>>>>>> [INFO] ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>>>>>> It depends on which example you are running! For GroupLens, yes, it's
>>>>>>> the movies.dat file.
>>>>>>>
>>>>>>> I will warn you that I think the various GroupLens data sets have
>>>>>>> different input formats. Some are comma-separated, which is what you
>>>>>>> need, and some are separated by "::". Open the file and look. If it is
>>>>>>> the latter, you need to change it to comma-separated form.
>>>>>>>
>>>>>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>>>>>> in the recommendation examples
>>>>>>>>
>>>>>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>>>>>
>>>>>>>> it mentions the "-i input_file " parameter,
>>>>>>>>
>>>>>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>>>>>> .dat files, which one should I use?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Yang
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> how do I debug this?
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
sorry I'm new to mahout, but could you point out where is the "netflix
dataset " ? the wiki does not show it, nor can I find it in the source
code:
$ find .. -iname "*netflix*" |grep -v '\.svn' |grep -v \.class
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderBuilder.java
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixDataModel.java
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommender.java
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderEvaluatorRunner.java
../examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixFileDataModel.java
On Fri, Oct 21, 2011 at 2:03 PM, Sean Owen <sr...@gmail.com> wrote:
> Again -- wrong input file. See Lance's message to you, which
> specifically noted that it's ratings.dat, not movies.dat, that you
> need to feed. I think that's also pretty self-evident that you feed
> ratings to the recommender. The error also clearly shows it's trying
> to parse movie-related strings as input, which is another clue.
>
> On Fri, Oct 21, 2011 at 10:01 PM, Yang <te...@gmail.com> wrote:
>> just tried the grouplens one, got some new errors:
>>
>>
>> $ mvn -X -e -q exec:java
>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
>> -Dexec.args="-i
>> /home/yyang/work/mahout/trunk/examples/data/ml-1m/movies.dat"
>>
>>
>>
>> [DEBUG] joining on thread
>> Thread[org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner]
>> [DEBUG] Setting accessibility to true in order to invoke main().
>> 11/10/21 14:00:20 INFO file.FileDataModel: Creating FileDataModel for
>> file /tmp/ratings.txt
>> 11/10/21 14:00:20 INFO file.FileDataModel: Reading file info...
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] An exception occured while executing the Java class. null
>>
>> For input string: "Toy Story (1995)"
>> [INFO] ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>> occured while executing the Java class. null
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>> exception occured while executing the Java class. null
>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> ... 17 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>> at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.lang.NumberFormatException: For input string: "Toy Story (1995)"
>> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>> at java.lang.Long.parseLong(Long.java:438)
>> at java.lang.Long.parseLong(Long.java:478)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.readItemIDFromString(FileDataModel.java:616)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLineWithoutID(FileDataModel.java:545)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFileWithoutID(FileDataModel.java:519)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:261)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:207)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:193)
>> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148)
>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.<init>(GroupLensDataModel.java:51)
>> at org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(GroupLensRecommenderEvaluatorRunner.java:47)
>> ... 6 more
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Fri Oct 21 14:00:20 PDT 2011
>> [INFO] Final Memory: 23M/127M
>> [INFO] ------------------------------------------------------------------------
>>
>>
>> On Fri, Oct 21, 2011 at 1:59 PM, Yang <te...@gmail.com> wrote:
>>> could you please give a list (or document in wiki, or I could edit it
>>> ), which mvn exec job requires exactly which file?
>>>
>>> thanks
>>> Yang
>>>
>>> On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
>>>> Um, you are running the Netflix example on the GroupLens data set. Of
>>>> course this doesn't work.
>>>>
>>>> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>>>>> I got the following errors when running:
>>>>>
>>>>> $ mvn -X -e -q exec:java
>>>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>>>>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> [DEBUG] joining on thread
>>>>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>>>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>>>>> NetflixDataModel for directory:
>>>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [INFO] An exception occured while executing the Java class. null
>>>>>
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [DEBUG] Trace
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>>>> occured while executing the Java class. null
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>>>> exception occured while executing the Java class. null
>>>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>>> ... 17 more
>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>>>> at java.lang.Thread.run(Thread.java:679)
>>>>> Caused by: java.lang.NullPointerException
>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>>>>> ... 6 more
>>>>> [INFO] ------------------------------------------------------------------------
>>>>> [INFO] Total time: 2 seconds
>>>>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>>>>> [INFO] Final Memory: 23M/127M
>>>>> [INFO] ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>>>>> It depends on which example you are running! For GroupLens, yes, it's
>>>>>> the movies.dat file.
>>>>>>
>>>>>> I will warn you that I think the various GroupLens data sets have
>>>>>> different input formats. Some are comma-separated, which is what you
>>>>>> need, and some are separated by "::". Open the file and look. If it is
>>>>>> the latter, you need to change it to comma-separated form.
>>>>>>
>>>>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>>>>> in the recommendation examples
>>>>>>>
>>>>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>>>>
>>>>>>> it mentions the "-i input_file " parameter,
>>>>>>>
>>>>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>>>>> .dat files, which one should I use?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Yang
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> how do I debug this?
>>>>>
>>>>
>>>
>>
>
Re: help with the "tutorial" examples
Posted by Sean Owen <sr...@gmail.com>.
Again -- wrong input file. See Lance's message to you, which
specifically noted that it's ratings.dat, not movies.dat, that you
need to feed. I think that's also pretty self-evident that you feed
ratings to the recommender. The error also clearly shows it's trying
to parse movie-related strings as input, which is another clue.
On Fri, Oct 21, 2011 at 10:01 PM, Yang <te...@gmail.com> wrote:
> just tried the grouplens one, got some new errors:
>
>
> $ mvn -X -e -q exec:java
> -Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
> -Dexec.args="-i
> /home/yyang/work/mahout/trunk/examples/data/ml-1m/movies.dat"
>
>
>
> [DEBUG] joining on thread
> Thread[org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner]
> [DEBUG] Setting accessibility to true in order to invoke main().
> 11/10/21 14:00:20 INFO file.FileDataModel: Creating FileDataModel for
> file /tmp/ratings.txt
> 11/10/21 14:00:20 INFO file.FileDataModel: Reading file info...
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An exception occured while executing the Java class. null
>
> For input string: "Toy Story (1995)"
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
> occured while executing the Java class. null
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An
> exception occured while executing the Java class. null
> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: java.lang.NumberFormatException: For input string: "Toy Story (1995)"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:438)
> at java.lang.Long.parseLong(Long.java:478)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.readItemIDFromString(FileDataModel.java:616)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLineWithoutID(FileDataModel.java:545)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFileWithoutID(FileDataModel.java:519)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:261)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:207)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:193)
> at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148)
> at org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.<init>(GroupLensDataModel.java:51)
> at org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(GroupLensRecommenderEvaluatorRunner.java:47)
> ... 6 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Oct 21 14:00:20 PDT 2011
> [INFO] Final Memory: 23M/127M
> [INFO] ------------------------------------------------------------------------
>
>
> On Fri, Oct 21, 2011 at 1:59 PM, Yang <te...@gmail.com> wrote:
>> could you please give a list (or document in wiki, or I could edit it
>> ), which mvn exec job requires exactly which file?
>>
>> thanks
>> Yang
>>
>> On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
>>> Um, you are running the Netflix example on the GroupLens data set. Of
>>> course this doesn't work.
>>>
>>> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>>>> I got the following errors when running:
>>>>
>>>> $ mvn -X -e -q exec:java
>>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>>>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>>>
>>>>
>>>>
>>>>
>>>> [DEBUG] joining on thread
>>>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>>>> NetflixDataModel for directory:
>>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>>>> [INFO] ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] An exception occured while executing the Java class. null
>>>>
>>>> [INFO] ------------------------------------------------------------------------
>>>> [DEBUG] Trace
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>>> occured while executing the Java class. null
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>>> exception occured while executing the Java class. null
>>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>> ... 17 more
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>>> at java.lang.Thread.run(Thread.java:679)
>>>> Caused by: java.lang.NullPointerException
>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>>>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>>>> ... 6 more
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] Total time: 2 seconds
>>>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>>>> [INFO] Final Memory: 23M/127M
>>>> [INFO] ------------------------------------------------------------------------
>>>>
>>>>
>>>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>>>> It depends on which example you are running! For GroupLens, yes, it's
>>>>> the movies.dat file.
>>>>>
>>>>> I will warn you that I think the various GroupLens data sets have
>>>>> different input formats. Some are comma-separated, which is what you
>>>>> need, and some are separated by "::". Open the file and look. If it is
>>>>> the latter, you need to change it to comma-separated form.
>>>>>
>>>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>>>> in the recommendation examples
>>>>>>
>>>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>>>
>>>>>> it mentions the "-i input_file " parameter,
>>>>>>
>>>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>>>> .dat files, which one should I use?
>>>>>>
>>>>>> Thanks
>>>>>> Yang
>>>>>>
>>>>>
>>>>
>>>>
>>>> how do I debug this?
>>>>
>>>
>>
>
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
just tried the grouplens one, got some new errors:
$ mvn -X -e -q exec:java
-Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
-Dexec.args="-i
/home/yyang/work/mahout/trunk/examples/data/ml-1m/movies.dat"
[DEBUG] joining on thread
Thread[org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner]
[DEBUG] Setting accessibility to true in order to invoke main().
11/10/21 14:00:20 INFO file.FileDataModel: Creating FileDataModel for
file /tmp/ratings.txt
11/10/21 14:00:20 INFO file.FileDataModel: Reading file info...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. null
For input string: "Toy Story (1995)"
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An exception
occured while executing the Java class. null
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An
exception occured while executing the Java class. null
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NumberFormatException: For input string: "Toy Story (1995)"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:438)
at java.lang.Long.parseLong(Long.java:478)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.readItemIDFromString(FileDataModel.java:616)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLineWithoutID(FileDataModel.java:545)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFileWithoutID(FileDataModel.java:519)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(FileDataModel.java:261)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:207)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:193)
at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148)
at org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.<init>(GroupLensDataModel.java:51)
at org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner.main(GroupLensRecommenderEvaluatorRunner.java:47)
... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Oct 21 14:00:20 PDT 2011
[INFO] Final Memory: 23M/127M
[INFO] ------------------------------------------------------------------------
On Fri, Oct 21, 2011 at 1:59 PM, Yang <te...@gmail.com> wrote:
> could you please give a list (or document in wiki, or I could edit it
> ), which mvn exec job requires exactly which file?
>
> thanks
> Yang
>
> On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
>> Um, you are running the Netflix example on the GroupLens data set. Of
>> course this doesn't work.
>>
>> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>>> I got the following errors when running:
>>>
>>> $ mvn -X -e -q exec:java
>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>>
>>>
>>>
>>>
>>> [DEBUG] joining on thread
>>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>>> [DEBUG] Setting accessibility to true in order to invoke main().
>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>>> NetflixDataModel for directory:
>>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] An exception occured while executing the Java class. null
>>>
>>> [INFO] ------------------------------------------------------------------------
>>> [DEBUG] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>>> occured while executing the Java class. null
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>>> exception occured while executing the Java class. null
>>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>> ... 17 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:616)
>>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>>> at java.lang.Thread.run(Thread.java:679)
>>> Caused by: java.lang.NullPointerException
>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>>> ... 6 more
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 2 seconds
>>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>>> [INFO] Final Memory: 23M/127M
>>> [INFO] ------------------------------------------------------------------------
>>>
>>>
>>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>>> It depends on which example you are running! For GroupLens, yes, it's
>>>> the movies.dat file.
>>>>
>>>> I will warn you that I think the various GroupLens data sets have
>>>> different input formats. Some are comma-separated, which is what you
>>>> need, and some are separated by "::". Open the file and look. If it is
>>>> the latter, you need to change it to comma-separated form.
>>>>
>>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>>> in the recommendation examples
>>>>>
>>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>>
>>>>> it mentions the "-i input_file " parameter,
>>>>>
>>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>>> .dat files, which one should I use?
>>>>>
>>>>> Thanks
>>>>> Yang
>>>>>
>>>>
>>>
>>>
>>> how do I debug this?
>>>
>>
>
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
could you please give a list (or document in wiki, or I could edit it
), which mvn exec job requires exactly which file?
thanks
Yang
On Fri, Oct 21, 2011 at 1:56 PM, Sean Owen <sr...@gmail.com> wrote:
> Um, you are running the Netflix example on the GroupLens data set. Of
> course this doesn't work.
>
> On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
>> I got the following errors when running:
>>
>> $ mvn -X -e -q exec:java
>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
>> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>>
>>
>>
>>
>> [DEBUG] joining on thread
>> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
>> [DEBUG] Setting accessibility to true in order to invoke main().
>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
>> NetflixDataModel for directory:
>> /home/yyang/work/mahout/trunk/examples/data/ml-1m
>> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] An exception occured while executing the Java class. null
>>
>> [INFO] ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
>> occured while executing the Java class. null
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: An
>> exception occured while executing the Java class. null
>> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
>> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> ... 17 more
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>> at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.lang.NullPointerException
>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
>> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
>> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
>> ... 6 more
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
>> [INFO] Final Memory: 23M/127M
>> [INFO] ------------------------------------------------------------------------
>>
>>
>> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>>> It depends on which example you are running! For GroupLens, yes, it's
>>> the movies.dat file.
>>>
>>> I will warn you that I think the various GroupLens data sets have
>>> different input formats. Some are comma-separated, which is what you
>>> need, and some are separated by "::". Open the file and look. If it is
>>> the latter, you need to change it to comma-separated form.
>>>
>>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>>> in the recommendation examples
>>>>
>>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>>
>>>> it mentions the "-i input_file " parameter,
>>>>
>>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>>> .dat files, which one should I use?
>>>>
>>>> Thanks
>>>> Yang
>>>>
>>>
>>
>>
>> how do I debug this?
>>
>
Re: help with the "tutorial" examples
Posted by Sean Owen <sr...@gmail.com>.
Um, you are running the Netflix example on the GroupLens data set. Of
course this doesn't work.
On Fri, Oct 21, 2011 at 9:54 PM, Yang <te...@gmail.com> wrote:
> I got the following errors when running:
>
> $ mvn -X -e -q exec:java
> -Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
> -Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
>
>
>
>
> [DEBUG] joining on thread
> Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
> [DEBUG] Setting accessibility to true in order to invoke main().
> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
> NetflixDataModel for directory:
> /home/yyang/work/mahout/trunk/examples/data/ml-1m
> 11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An exception occured while executing the Java class. null
>
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An exception
> occured while executing the Java class. null
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An
> exception occured while executing the Java class. null
> at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: java.lang.NullPointerException
> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
> at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
> at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
> ... 6 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
> [INFO] Final Memory: 23M/127M
> [INFO] ------------------------------------------------------------------------
>
>
> On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
>> It depends on which example you are running! For GroupLens, yes, it's
>> the movies.dat file.
>>
>> I will warn you that I think the various GroupLens data sets have
>> different input formats. Some are comma-separated, which is what you
>> need, and some are separated by "::". Open the file and look. If it is
>> the latter, you need to change it to comma-separated form.
>>
>> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>>> in the recommendation examples
>>>
>>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>>
>>> it mentions the "-i input_file " parameter,
>>>
>>> but the downloaded movie-lens dataset is a zip, and contains multiple
>>> .dat files, which one should I use?
>>>
>>> Thanks
>>> Yang
>>>
>>
>
>
> how do I debug this?
>
Re: help with the "tutorial" examples
Posted by Yang <te...@gmail.com>.
I got the following errors when running:
$ mvn -X -e -q exec:java
-Dexec.mainClass="org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner"
-Dexec.args="-i /home/yyang/work/mahout/trunk/examples/data/ml-1m/"
[DEBUG] joining on thread
Thread[org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(),5,org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner]
[DEBUG] Setting accessibility to true in order to invoke main().
11/10/21 13:52:01 INFO netflix.NetflixDataModel: Creating
NetflixDataModel for directory:
/home/yyang/work/mahout/trunk/examples/data/ml-1m
11/10/21 13:52:01 INFO netflix.NetflixDataModel: Reading preference data...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. null
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An exception
occured while executing the Java class. null
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An
exception occured while executing the Java class. null
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NullPointerException
at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.readUsers(NetflixDataModel.java:79)
at org.apache.mahout.cf.taste.example.netflix.NetflixDataModel.<init>(NetflixDataModel.java:68)
at org.apache.mahout.cf.taste.example.netflix.NetflixRecommenderEvaluatorRunner.main(NetflixRecommenderEvaluatorRunner.java:44)
... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Oct 21 13:52:01 PDT 2011
[INFO] Final Memory: 23M/127M
[INFO] ------------------------------------------------------------------------
On Fri, Oct 21, 2011 at 1:21 AM, Sean Owen <sr...@gmail.com> wrote:
> It depends on which example you are running! For GroupLens, yes, it's
> the movies.dat file.
>
> I will warn you that I think the various GroupLens data sets have
> different input formats. Some are comma-separated, which is what you
> need, and some are separated by "::". Open the file and look. If it is
> the latter, you need to change it to comma-separated form.
>
> On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
>> in the recommendation examples
>>
>> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>>
>> it mentions the "-i input_file " parameter,
>>
>> but the downloaded movie-lens dataset is a zip, and contains multiple
>> .dat files, which one should I use?
>>
>> Thanks
>> Yang
>>
>
how do I debug this?
Re: help with the "tutorial" examples
Posted by Sean Owen <sr...@gmail.com>.
It depends on which example you are running! For GroupLens, yes, it's
the movies.dat file.
I will warn you that I think the various GroupLens data sets have
different input formats. Some are comma-separated, which is what you
need, and some are separated by "::". Open the file and look. If it is
the latter, you need to change it to comma-separated form.
On Thu, Oct 20, 2011 at 11:41 PM, Yang <te...@gmail.com> wrote:
> in the recommendation examples
>
> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>
> it mentions the "-i input_file " parameter,
>
> but the downloaded movie-lens dataset is a zip, and contains multiple
> .dat files, which one should I use?
>
> Thanks
> Yang
>