mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <sro...@gmail.com>
Subject Re: how do you run the kdd examples?
Date Fri, 10 Jun 2011 22:20:52 GMT
This is a case where you'll probably need to read the source to understand
what it does. You haven't given the program any arguments:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 0

It wants the location of your KDD cup files as a directory.

On Fri, Jun 10, 2011 at 9:11 PM, jeff thomas <mrwzl@yahoo.com> wrote:

> Yea... so I ran that, the
> mvn -e exec:java
>
> -Dexec.mainClass="org.apache.mahout.cf.taste.example.kddcup.track1.Track1Runner"
> fails still
>
>
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Mahout Examples 0.6-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> exec-maven-plugin:1.2:java (default-cli) @ mahout-examples >>>
> [INFO]
> [INFO] <<< exec-maven-plugin:1.2:java (default-cli) @ mahout-examples <<<
> [INFO]
> [INFO] --- exec-maven-plugin:1.2:java (default-cli) @ mahout-examples ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.080s
> [INFO] Finished at: Fri Jun 10 20:11:13 UTC 2011
> [INFO] Final Memory: 14M/69M
> [INFO]
> ------------------------------------------------------------------------
> [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: 0 -> [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:537)
>        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:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        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:101)
>
>        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: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:636)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>        at
>
> org.apache.mahout.cf.taste.example.kddcup.track1.Track1Runner.main(Track1Runner.java:53)
>
>        ... 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
>
>
>
>
>
>
> ----- Original Message ----
> From: Jeff Eastman <jeastman@Narus.com>
> To: "user@mahout.apache.org" <user@mahout.apache.org>
> Sent: Fri, June 10, 2011 12:59:26 PM
> Subject: RE: how do you run the kdd examples?
>
> ... from the mahout directory
>
> -----Original Message-----
> From: Jeff Eastman [mailto:jeastman@Narus.com]
> Sent: Friday, June 10, 2011 12:59 PM
> To: user@mahout.apache.org
> Subject: RE: how do you run the kdd examples?
>
> Try mvn install -DskipTests=true
>
> -----Original Message-----
> From: jeff thomas [mailto:mrwzl@yahoo.com]
> Sent: Friday, June 10, 2011 12:30 PM
> To: user@mahout.apache.org
> Subject: how do you run the kdd examples?
>
> I feel so lost...
>
> From the examples directory, i run:
> mvn compile
> which finishes successfully.
>
> Then, based on the examples
> here:
> https://cwiki.apache.org/confluence/display/MAHOUT/RecommendationExamples
>
> I try to run:
> [root@box examples]#  mvn exec:java
>
> -Dexec.mainClass="org.apache.mahout.cf.taste.example.kddcup.track1.Track1Runner"
>
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Mahout Examples 0.6-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> exec-maven-plugin:1.2:java (default-cli) @ mahout-examples >>>
> [INFO]
> [INFO] <<< exec-maven-plugin:1.2:java (default-cli) @ mahout-examples <<<
> [INFO]
> [INFO] --- exec-maven-plugin:1.2:java (default-cli) @ mahout-examples ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.111s
> [INFO] Finished at: Fri Jun 10 19:28:03 UTC 2011
> [INFO] Final Memory: 14M/68M
> [INFO]
> ------------------------------------------------------------------------
> [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: 0 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [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
> [root@box examples]#
>
>
> With -e:
>
>
> [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: 0 -> [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:537)
>        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:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        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:101)
>
>
>        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: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:636)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>        at
>
> org.apache.mahout.cf.taste.example.kddcup.track1.Track1Runner.main(Track1Runner.java:53)
>
>
>        ... 6 more
>
>
>
> I realize that I haven't told it where the track1 files are (basically
> because I
>
> don't know how to do that), but I'm not entirely sure that's my only
> problem.
>
> Can anyone give a quick how-to on using the KDD examples for new folks like
> me?
>
> Thanks!
>
>

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