hello there,
first of all thanks for the response.
The wiki doesn't say where the .jar sould be, but the maven script doesn't
create it anywhere. I am guessing it's because the test fails but i have no
idea (it compiles just fine).
I'll try installing Cywing, In the meantime the stack trace:
testEvaluate(org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest) Time
elapsed: 1.531 sec <<< ERROR!
java.io.IOException: Cannot run program "chmod": CreateProcess error=2, O
sistema não pode encontrar o arquivo especificado
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)
at org.apache.hadoop.util.Shell.run(Shell.java:134)
at
org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:338)
at
org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.java:540)
at
org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:532)
at
org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:274)
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:364)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:487)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:468)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:375)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:367)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluator.storePopulation(MahoutEvaluator.java:138)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluator.prepareInput(MahoutEvaluator.java:95)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluator.evaluate(MahoutEvaluator.java:66)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest.testEvaluate(MahoutEvaluatorTest.java:49)
Caused by: java.io.IOException: CreateProcess error=2, O sistema não pode
encontrar o arquivo especificado
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 42 more
testStoreLoadPopulation(org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest)
Time elapsed: 0.062 sec <<< ERROR!
java.io.IOException: Cannot run program "chmod": CreateProcess error=2, O
sistema não pode encontrar o arquivo especificado
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)
at org.apache.hadoop.util.Shell.run(Shell.java:134)
at
org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:338)
at
org.apache.hadoop.fs.RawLocalFileSystem.execCommand(RawLocalFileSystem.java:540)
at
org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:532)
at
org.apache.hadoop.fs.FilterFileSystem.setPermission(FilterFileSystem.java:274)
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:364)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:487)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:468)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:375)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:367)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluator.storePopulation(MahoutEvaluator.java:138)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest.storeLoadPopulation(MahoutEvaluatorTest.java:75)
at
org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest.testStoreLoadPopulation(MahoutEvaluatorTest.java:66)
Caused by: java.io.IOException: CreateProcess error=2, O sistema não pode
encontrar o arquivo especificado
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 41 more
Grant Ingersoll-6 wrote:
>
> Hi Túlio,
>
> Inline below
> On Mar 28, 2009, at 12:11 AM, Túlio wrote:
>
>>
>> Hi guys,
>>
>> i am trying to compile mahout using Netbeans. Installed the plugins
>> and
>> everything seems to work fine and I am able to compile the whole
>> thing.
>>
>> However, some tests have errors, exceptions that are not correctly
>> handled
>> (and this seems to prevent the .jar file to be created for the
>> Mahout core
>> target of the pom file - i am not familiar with maven :S)
>>
>> The tests that are getting errors are:
>>
>> Running org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest
>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
>> 1.093 sec
>> <<< FAILURE!
>>
>> Running org.apache.mahout.clustering.dirichlet.TestMapReduce
>> Tests run: 16, Failures: 0, Errors: 4, Skipped: 0, Time elapsed:
>> 4.266 sec
>> <<< FAILURE!
>>
>> Running org.apache.mahout.clustering.kmeans.TestKmeansClustering
>> Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 1.156 sec
>> <<< FAILURE!
>>
>> Running org.apache.mahout.clustering.meanshift.TestMeanShift
>> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 2.203 sec
>> <<< FAILURE!
>>
>> I am getting the following exception:
>>
>> java.io.IOException: Cannot run program "chmod": CreateProcess
>> error=2, O
>> sistema não pode encontrar o arquivo especificado (The system can't
>> find the
>> specified file)
>>
>> Does this have anything to do with the fact that i am trying to run
>> it on
>> Windows?
>
> Can you give more of the stack trace? I haven't run on Windows, but
> by the looks of it you need to have "chmod" in your path, which likely
> means you need to have Cygwin or something similar installed. This is
> likely a Hadoop issue on Windows, but please post more so we can
> confirm.
>
>>
>>
>> How do I get it to work (and generate the .jar file so i can run the
>> samples)? the .jar file should be in the mahout\core\build folder
>> after
>> build, right?
>
> Hopefully, http://cwiki.apache.org/MAHOUT/buildingmahout.html should
> help.
>>
>>
>> Sorry for the silly question, i am just trying to get this to work.
>> We have
>> a bayesian decision system that using Netica-J and I am looking for
>> alternatives.
>>
>
> Cool!
>
>
>
--
View this message in context:
http://www.nabble.com/Unit-Tests-Failed-tp22753622p22760744.html
Sent from the Mahout User List mailing list archive at Nabble.com.