Oh, did you convert the file format? You have to either do that to
convert the "::" delimiter to a ",", or else modify the code to use a
special parser for that input.

On Wed, Feb 23, 2011 at 1:48 PM, Cristian Lai <[email protected]> wrote:
> Yes of course.
> My run was with the '-e'.
>
> The input file is the one recommended at
> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>
> The downloaded file belong to the archive provided by Grouplens
> http://www.grouplens.org/node/73
>
> Any idea?
> Thaks in advance.
>
> cristian
>
> Please let me include the complete error trace:
> ù[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java
> (default-cli) on project mahout-examples: An exception occured while
> executing the Java class. null: InvocationTargetException: Did not find a
> delimiter in first line -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-cli) on project
> mahout-examples: An exception occured while executing the Java class. null
>    at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>    at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>    at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>    at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>    at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>    at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>    at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>    at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>    at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>    at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> 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.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>    at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>    ... 19 more
> Caused by: java.lang.reflect.InvocationTargetException
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
>    at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.IllegalArgumentException: Did not find a delimiter in
> first line
>    at
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.determineDelimiter(FileDataModel.java:318)
>    at
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:179)
>    at
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:146)
>    at
> org.apache.mahout.cf.taste.example.bookcrossing.BookCrossingDataModel.<init>(BookCrossingDataModel.java:53)
>    at
> org.apache.mahout.cf.taste.example.bookcrossing.BookCrossingRecommenderEvaluatorRunner.main(BookCrossingRecommenderEvaluatorRunner.java:43)
>    ... 6 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
> Il 2/23/11 2:10 PM, Sean Owen ha scritto:
>>
>> It looks like the input is malformed. You'll have to look at what it's
>> reading and what it's seeing to understand why the input isn't correct
>> there, but it works for me.
>>
>> It's possible this is not the real error, so you might run with "-e"
>> to see more about the error.
>>
>> On Wed, Feb 23, 2011 at 11:15 AM, Cristian Lai<[email protected]>  wrote:
>>>
>>> Dear All,
>>> i'm trying to run the example by the command
>>>
>>> $MAVEN_HOME/bin/mvn -f pom.xml -q exec:java
>>>
>>> -Dexec.mainClass="org.apache.mahout.cf.taste.example.bookcrossing.BookCrossingRecommenderEvaluatorRunner"
>>> -Dexec.args="-i tmp/million-ml-data/ratings.dat"
>>>
>>> My environment has:
>>> Maven version is 3.0.2
>>> Java version 1.6.0_22
>>>
>>> The error i get is the following:
>>>
>>> Feb 23, 2011 11:43:15 AM org.slf4j.impl.JCLLoggerAdapter info
>>> INFO: Creating FileDataModel for file
>>> /var/folders/qN/qNNZz6mEGCm0xe6CxuiceE+++TI/-Tmp-/taste.bookcrossing.txt
>>> [ERROR] Failed to execute goal
>>> org.codehaus.mojo:exec-maven-plugin:1.2:java
>>> (default-cli) on project mahout-examples: An exception occured while
>>> executing the Java class. null: InvocationTargetException: Did not find a
>>> delimiter in first line ->  [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>>> goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-cli) on
>>> project
>>> mahout-examples: An exception occured while executing the Java class.
>>> null
>>>    at
>>>
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>>>
>>> Anybody can help me?
>>>
>>> Best regards.
>>>
>>> cristian
>>>
>
>

Reply via email to