You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by jeff thomas <mr...@yahoo.com> on 2011/06/10 21:30:25 UTC
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!
Re: how do you run the kdd examples?
Posted by Sean Owen <sr...@gmail.com>.
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 <mr...@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 <je...@Narus.com>
> To: "user@mahout.apache.org" <us...@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!
>
>
Re: how do you run the kdd examples?
Posted by jeff thomas <mr...@yahoo.com>.
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 <je...@Narus.com>
To: "user@mahout.apache.org" <us...@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!
RE: how do you run the kdd examples?
Posted by Jeff Eastman <je...@Narus.com>.
... 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!
RE: how do you run the kdd examples?
Posted by Jeff Eastman <je...@Narus.com>.
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!