You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Drew Farris <dr...@apache.org> on 2010/08/11 02:39:51 UTC

Re: Build failed in Hudson: Mahout nightly #238

Looks like this is failing because something is different with the way
these unit tests are attempting to locate test resources:

In the output:
http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/surefire-reports/org.apache.mahout.ga.watchmaker.cd.DataLineTest.txt
http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/surefire-reports/org.apache.mahout.ga.watchmaker.cd.FileInfosDatasetTest.txt
http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/surefire-reports/org.apache.mahout.ga.watchmaker.cd.hadoop.CDMahoutEvaluatorTest.txt

The common denominator is:
testRanges(org.apache.mahout.ga.watchmaker.cd.FileInfosDatasetTest)
Time elapsed: 0.01 sec  <<< ERROR!
java.lang.IllegalArgumentException: Input path does not exist:
/home/hudson/hudson-slave/workspace/Mahout%20nightly/trunk/examples/target/test-classes/wdbc
	at org.apache.mahout.ga.watchmaker.cd.FileInfoParser.getInfoFile(FileInfoParser.java:120)
	at org.apache.mahout.ga.watchmaker.cd.FileInfoParser.parseFile(FileInfoParser.java:67)
	at org.apache.mahout.ga.watchmaker.cd.FileInfosDatasetTest.testRanges(FileInfosDatasetTest.java:36)

Which is as a result of code like the following:
Path inpath = new Path(this.getClass().getResource("/wdbc/").getPath());
FileSystem fs = FileSystem.get(inpath.toUri(), new Configuration());

DataSet dataset = FileInfoParser.parseFile(fs, inpath);

I suspect that the patern should be something like:
FileSystem fs = FileSystem.get(new Configuration());
Path inpath = fs.makeQualified(new
Path(this.getClass().getResource("/wdbc/").getPath()));

DataSet dataset = FileInfoParser.parseFile(fs, inpath

What I don't really understand is why the original code doesn't work
in the context of hudson, specifically in the context of this build. I
suspect there's something I don't understand about the build process
there.

- Drew

On Tue, Aug 10, 2010 at 7:19 PM, Apache Hudson Server
<hu...@hudson.zones.apache.org> wrote:
> See <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/238/changes>
>
> Changes:
>
> [srowen] MAHOUT-455
>
> [srowen] Oops back out uninentional bad changes from last CL
>
> [srowen] Style bits
>
> [Drew Farris] Fixed dependency declaration for mahout-taste-webapp to specify 'war' type instead of default jar.
>
> [Drew Farris] MAHOUT-457: ItemSimilarityJob and RecommenderJob don't work on Amazon ElasticMapReduce (via Sebastian Schelter)
>
> ------------------------------------------
> [...truncated 1117 lines...]
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/src/test/resources>
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test {execution: default-test}]
> [INFO] No tests to run.
> [HUDSON] Recording test results
> [INFO] [war:war {execution: default-war}]
> [INFO] Packaging webapp
> [INFO] Assembling webapp[mahout-taste-webapp] in [<http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/target/mahout-taste-webapp-0.4-SNAPSHOT]>
> [INFO] Dependency[Dependency {groupId=org.apache.mahout, artifactId=mahout-core, version=0.4-SNAPSHOT, type=jar}] has changed (was Dependency {groupId=org.apache.mahout, artifactId=mahout-core, version=0.4-SNAPSHOT, type=jar}).
> [INFO] Processing war project
> [INFO] Copying webapp webResources[<http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/src/main/resources]> to[<http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/target/mahout-taste-webapp-0.4-SNAPSHOT]>
> [INFO] Copying webapp resources[<http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/src/main/webapp]>
> [INFO] Webapp assembled in [23 msecs]
> [INFO] Building war: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/target/mahout-taste-webapp-0.4-SNAPSHOT.war>
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/target/mahout-taste-webapp-0.4-SNAPSHOT.war> to /home/hudson/.m2/repository/org/apache/mahout/mahout-taste-webapp/0.4-SNAPSHOT/mahout-taste-webapp-0.4-SNAPSHOT.war
> [INFO] [deploy:deploy {execution: default-deploy}]
> [INFO] Retrieving previous build number from apache.snapshots.https
> Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/mahout/mahout-taste-webapp/0.4-SNAPSHOT/mahout-taste-webapp-0.4-20100810.230208-114.war
> 5626K uploaded  (mahout-taste-webapp-0.4-20100810.230208-114.war)
> [INFO] Retrieving previous metadata from apache.snapshots.https
> [INFO] Uploading repository metadata for: 'artifact org.apache.mahout:mahout-taste-webapp'
> [INFO] Uploading project information for mahout-taste-webapp 0.4-20100810.230208-114
> [INFO] Retrieving previous metadata from apache.snapshots.https
> [INFO] Uploading repository metadata for: 'snapshot org.apache.mahout:mahout-taste-webapp:0.4-SNAPSHOT'
> [HUDSON] Archiving <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/pom.xml> to /export/home/hudson/hudson/jobs/Mahout nightly/modules/org.apache.mahout$mahout-taste-webapp/builds/2010-08-10_23-01-50/archive/org.apache.mahout/mahout-taste-webapp/0.4-SNAPSHOT/pom.xml
> [HUDSON] Archiving <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/taste-web/target/mahout-taste-webapp-0.4-SNAPSHOT.war> to /export/home/hudson/hudson/jobs/Mahout nightly/modules/org.apache.mahout$mahout-taste-webapp/builds/2010-08-10_23-01-50/archive/org.apache.mahout/mahout-taste-webapp/0.4-20100810.230208-114/mahout-taste-webapp-0.4-SNAPSHOT.war
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Mahout Utilities
> [INFO]    task-segment: [clean, install, deploy]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting file set: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target> (included: [**], excluded: [])
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [resources:copy-resources {execution: copy-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 58 source files to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/classes>
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Compiling 16 source files to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/test-classes>
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/surefire-reports>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.mahout.utils.vectors.text.DictionaryVectorizerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.658 sec
> Running org.apache.mahout.clustering.TestClusterDumper
> [HUDSON] Recording test results
> [INFO] [jar:jar {execution: default-jar}]
> [INFO] Building jar: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/mahout-utils-0.4-SNAPSHOT.jar>
> [INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
> [INFO] Copying cglib-nodep-2.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/cglib-nodep-2.2.jar>
> [INFO] Copying gson-1.3.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/gson-1.3.jar>
> [INFO] Copying google-collections-1.0-rc2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/google-collections-1.0-rc2.jar>
> [INFO] Copying guava-r03.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/guava-r03.jar>
> [INFO] Copying xstream-1.3.1.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/xstream-1.3.1.jar>
> [INFO] Copying commons-cli-1.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-cli-1.2.jar>
> [INFO] Copying commons-codec-1.3.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-codec-1.3.jar>
> [INFO] Copying commons-dbcp-1.2.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-dbcp-1.2.2.jar>
> [INFO] Copying commons-httpclient-3.0.1.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-httpclient-3.0.1.jar>
> [INFO] Copying commons-lang-2.4.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-lang-2.4.jar>
> [INFO] Copying commons-logging-1.1.1.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-logging-1.1.1.jar>
> [INFO] Copying commons-math-1.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-math-1.2.jar>
> [INFO] Copying commons-pool-1.4.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-pool-1.4.jar>
> [INFO] Copying junit-4.7.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/junit-4.7.jar>
> [INFO] Copying hadoop-core-0.20.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/hadoop-core-0.20.2.jar>
> [INFO] Copying lucene-analyzers-3.0.1.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/lucene-analyzers-3.0.1.jar>
> [INFO] Copying lucene-core-3.0.1.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/lucene-core-3.0.1.jar>
> [INFO] Copying mahout-collections-1.0.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/mahout-collections-1.0.jar>
> [INFO] Copying mahout-core-0.4-SNAPSHOT.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/mahout-core-0.4-SNAPSHOT.jar>
> [INFO] Copying mahout-core-0.4-SNAPSHOT-tests.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/mahout-core-0.4-SNAPSHOT-tests.jar>
> [INFO] Copying mahout-math-0.4-SNAPSHOT.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/mahout-math-0.4-SNAPSHOT.jar>
> [INFO] Copying mahout-math-0.4-SNAPSHOT-tests.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/mahout-math-0.4-SNAPSHOT-tests.jar>
> [INFO] Copying commons-cli-2.0-mahout.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/commons-cli-2.0-mahout.jar>
> [INFO] Copying hbase-0.20.0.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/hbase-0.20.0.jar>
> [INFO] Copying easymock-2.5.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/easymock-2.5.2.jar>
> [INFO] Copying easymockclassextension-2.5.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/easymockclassextension-2.5.2.jar>
> [INFO] Copying objenesis-1.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/objenesis-1.2.jar>
> [INFO] Copying slf4j-api-1.6.0.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/slf4j-api-1.6.0.jar>
> [INFO] Copying slf4j-jcl-1.6.0.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/slf4j-jcl-1.6.0.jar>
> [INFO] Copying uncommons-maths-1.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/uncommons-maths-1.2.jar>
> [INFO] Copying watchmaker-framework-0.6.2.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/watchmaker-framework-0.6.2.jar>
> [INFO] Copying xpp3_min-1.1.4c.jar to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/dependency/xpp3_min-1.1.4c.jar>
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/mahout-utils-0.4-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/mahout/mahout-utils/0.4-SNAPSHOT/mahout-utils-0.4-SNAPSHOT.jar
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [resources:copy-resources {execution: copy-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/surefire-reports>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.mahout.utils.vectors.text.DictionaryVectorizerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.653 sec
> Running org.apache.mahout.clustering.TestClusterDumper
> [HUDSON] Recording test results
> [INFO] [jar:jar {execution: default-jar}]
> [INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
> [INFO] cglib-nodep-2.2.jar already exists in destination.
> [INFO] gson-1.3.jar already exists in destination.
> [INFO] google-collections-1.0-rc2.jar already exists in destination.
> [INFO] guava-r03.jar already exists in destination.
> [INFO] xstream-1.3.1.jar already exists in destination.
> [INFO] commons-cli-1.2.jar already exists in destination.
> [INFO] commons-codec-1.3.jar already exists in destination.
> [INFO] commons-dbcp-1.2.2.jar already exists in destination.
> [INFO] commons-httpclient-3.0.1.jar already exists in destination.
> [INFO] commons-lang-2.4.jar already exists in destination.
> [INFO] commons-logging-1.1.1.jar already exists in destination.
> [INFO] commons-math-1.2.jar already exists in destination.
> [INFO] commons-pool-1.4.jar already exists in destination.
> [INFO] junit-4.7.jar already exists in destination.
> [INFO] hadoop-core-0.20.2.jar already exists in destination.
> [INFO] lucene-analyzers-3.0.1.jar already exists in destination.
> [INFO] lucene-core-3.0.1.jar already exists in destination.
> [INFO] mahout-collections-1.0.jar already exists in destination.
> [INFO] mahout-core-0.4-SNAPSHOT.jar already exists in destination.
> [INFO] mahout-core-0.4-SNAPSHOT-tests.jar already exists in destination.
> [INFO] mahout-math-0.4-SNAPSHOT.jar already exists in destination.
> [INFO] mahout-math-0.4-SNAPSHOT-tests.jar already exists in destination.
> [INFO] commons-cli-2.0-mahout.jar already exists in destination.
> [INFO] hbase-0.20.0.jar already exists in destination.
> [INFO] easymock-2.5.2.jar already exists in destination.
> [INFO] easymockclassextension-2.5.2.jar already exists in destination.
> [INFO] objenesis-1.2.jar already exists in destination.
> [INFO] slf4j-api-1.6.0.jar already exists in destination.
> [INFO] slf4j-jcl-1.6.0.jar already exists in destination.
> [INFO] uncommons-maths-1.2.jar already exists in destination.
> [INFO] watchmaker-framework-0.6.2.jar already exists in destination.
> [INFO] xpp3_min-1.1.4c.jar already exists in destination.
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/mahout-utils-0.4-SNAPSHOT.jar> to /home/hudson/.m2/repository/org/apache/mahout/mahout-utils/0.4-SNAPSHOT/mahout-utils-0.4-SNAPSHOT.jar
> [INFO] [deploy:deploy {execution: default-deploy}]
> [INFO] Retrieving previous build number from apache.snapshots.https
> Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/mahout/mahout-utils/0.4-SNAPSHOT/mahout-utils-0.4-20100810.230208-112.jar
> 180K uploaded  (mahout-utils-0.4-20100810.230208-112.jar)
> [INFO] Retrieving previous metadata from apache.snapshots.https
> [INFO] Uploading repository metadata for: 'artifact org.apache.mahout:mahout-utils'
> [INFO] Uploading project information for mahout-utils 0.4-20100810.230208-112
> [INFO] Retrieving previous metadata from apache.snapshots.https
> [INFO] Uploading repository metadata for: 'snapshot org.apache.mahout:mahout-utils:0.4-SNAPSHOT'
> [HUDSON] Archiving <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/pom.xml> to /export/home/hudson/hudson/jobs/Mahout nightly/modules/org.apache.mahout$mahout-utils/builds/2010-08-10_23-01-50/archive/org.apache.mahout/mahout-utils/0.4-SNAPSHOT/pom.xml
> [HUDSON] Archiving <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/utils/target/mahout-utils-0.4-SNAPSHOT.jar> to /export/home/hudson/hudson/jobs/Mahout nightly/modules/org.apache.mahout$mahout-utils/builds/2010-08-10_23-01-50/archive/org.apache.mahout/mahout-utils/0.4-20100810.230208-112/mahout-utils-0.4-SNAPSHOT.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Mahout Examples
> [INFO]    task-segment: [clean, install, deploy]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting file set: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target> (included: [**], excluded: [])
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 95 source files to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/classes>
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Compiling 18 source files to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/test-classes>
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory: <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/surefire-reports>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.mahout.ga.watchmaker.cd.tool.CDInfosToolTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.47 sec
> Running org.apache.mahout.ga.watchmaker.cd.CDCrossoverTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
> Running org.apache.mahout.ga.watchmaker.cd.hadoop.CDMahoutEvaluatorTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.028 sec <<< FAILURE!
> Running org.apache.mahout.ga.watchmaker.cd.CDFitnessTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> Running org.apache.mahout.ga.watchmaker.cd.tool.ToolMapperTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
> Running org.apache.mahout.ga.watchmaker.cd.tool.ToolCombinerTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
> Running org.apache.mahout.ga.watchmaker.cd.DataLineTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
> Running org.apache.mahout.ga.watchmaker.cd.CDMutationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.802 sec
> Running org.apache.mahout.ga.watchmaker.cd.FileInfosDatasetTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE!
> Running org.apache.mahout.ga.watchmaker.cd.hadoop.CDMapperTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> Running org.apache.mahout.ga.watchmaker.cd.tool.DescriptionUtilsTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> Running org.apache.mahout.ga.watchmaker.cd.hadoop.DatasetSplitTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
> Running org.apache.mahout.ga.watchmaker.cd.CDRuleTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.225 sec
> Running org.apache.mahout.ga.watchmaker.cd.tool.ToolReducerTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
> Running org.apache.mahout.ga.watchmaker.cd.hadoop.CDReducerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
>
> Results :
>
> Tests in error:
>  testEvaluate(org.apache.mahout.ga.watchmaker.cd.hadoop.CDMahoutEvaluatorTest)
>  testSet(org.apache.mahout.ga.watchmaker.cd.DataLineTest)
>  testRanges(org.apache.mahout.ga.watchmaker.cd.FileInfosDatasetTest)
>
> Tests run: 29, Failures: 0, Errors: 3, Skipped: 0
>
> [HUDSON] Recording test results
> [HUDSON] Archiving <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/pom.xml> to /export/home/hudson/hudson/jobs/Mahout nightly/modules/org.apache.mahout$mahout-examples/builds/2010-08-10_23-01-50/archive/org.apache.mahout/mahout-examples/0.4-SNAPSHOT/pom.xml
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to <http://hudson.zones.apache.org/hudson/job/Mahout%20nightly/ws/trunk/examples/target/surefire-reports> for the individual test results.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 17 minutes 50 seconds
> [INFO] Finished at: Tue Aug 10 23:19:49 UTC 2010
> [INFO] Final Memory: 82M/374M
> [INFO] ------------------------------------------------------------------------
> Waiting for Hudson to finish collecting data
> Maven failed with error.
> An attempt to send an e-mail to empty list of recipients, ignored.
> channel stopped
>
>

Re: Build failed in Hudson: Mahout nightly #238

Posted by Ted Dunning <te...@gmail.com>.
The makeQualified might or might not be necessary, not sure.

But it should definitely be Resources.getResource (note the plural).

On Tue, Aug 10, 2010 at 5:55 PM, Drew Farris <dr...@gmail.com> wrote:

> So, something like:
>
> Path inpath = new Path(Resource.getResource("/wdbc"));
>
> Or would the fs.makeQualified(..) still be needed in that case?
>
> - Drew
>
> On Tue, Aug 10, 2010 at 8:46 PM, Ted Dunning <te...@gmail.com>
> wrote:
> > Even better is to use the guava idiom:  Resources.getResource(...)
> >
> > On Tue, Aug 10, 2010 at 5:39 PM, Drew Farris <dr...@apache.org> wrote:
> >
> >> Which is as a result of code like the following:
> >> Path inpath = new Path(this.getClass().getResource("/wdbc/").getPath());
> >> FileSystem fs = FileSystem.get(inpath.toUri(), new Configuration());
> >>
> >> DataSet dataset = FileInfoParser.parseFile(fs, inpath);
> >>
> >> I suspect that the patern should be something like:
> >> FileSystem fs = FileSystem.get(new Configuration());
> >> Path inpath = fs.makeQualified(new
> >> Path(this.getClass().getResource("/wdbc/").getPath()));
> >>
> >
>

Re: Build failed in Hudson: Mahout nightly #238

Posted by Drew Farris <dr...@gmail.com>.
So, something like:

Path inpath = new Path(Resource.getResource("/wdbc"));

Or would the fs.makeQualified(..) still be needed in that case?

- Drew

On Tue, Aug 10, 2010 at 8:46 PM, Ted Dunning <te...@gmail.com> wrote:
> Even better is to use the guava idiom:  Resources.getResource(...)
>
> On Tue, Aug 10, 2010 at 5:39 PM, Drew Farris <dr...@apache.org> wrote:
>
>> Which is as a result of code like the following:
>> Path inpath = new Path(this.getClass().getResource("/wdbc/").getPath());
>> FileSystem fs = FileSystem.get(inpath.toUri(), new Configuration());
>>
>> DataSet dataset = FileInfoParser.parseFile(fs, inpath);
>>
>> I suspect that the patern should be something like:
>> FileSystem fs = FileSystem.get(new Configuration());
>> Path inpath = fs.makeQualified(new
>> Path(this.getClass().getResource("/wdbc/").getPath()));
>>
>

Re: Build failed in Hudson: Mahout nightly #238

Posted by Ted Dunning <te...@gmail.com>.
Even better is to use the guava idiom:  Resources.getResource(...)

On Tue, Aug 10, 2010 at 5:39 PM, Drew Farris <dr...@apache.org> wrote:

> Which is as a result of code like the following:
> Path inpath = new Path(this.getClass().getResource("/wdbc/").getPath());
> FileSystem fs = FileSystem.get(inpath.toUri(), new Configuration());
>
> DataSet dataset = FileInfoParser.parseFile(fs, inpath);
>
> I suspect that the patern should be something like:
> FileSystem fs = FileSystem.get(new Configuration());
> Path inpath = fs.makeQualified(new
> Path(this.getClass().getResource("/wdbc/").getPath()));
>