From user-return-8317-apmail-mahout-user-archive=mahout.apache.org@mahout.apache.org Mon Jun 6 11:08:56 2011 Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E11E14562 for ; Mon, 6 Jun 2011 11:08:55 +0000 (UTC) Received: (qmail 92114 invoked by uid 500); 6 Jun 2011 11:08:55 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 91998 invoked by uid 500); 6 Jun 2011 11:08:54 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Delivered-To: moderator for user@mahout.apache.org Received: (qmail 75281 invoked by uid 99); 6 Jun 2011 11:00:15 -0000 X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=HK_RANDOM_ENVFROM,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of infjfd00@udc.es designates 193.147.40.143 as permitted sender) X-Virus-Scanned: amavisd-new at smtpout1.correo.udc.es Date: Mon, 6 Jun 2011 12:59:44 +0200 (CEST) From: Jose Fuentes De Frutos To: user Message-ID: <766217251.376823.1307357984029.JavaMail.root@ms3.correo.udc.es> In-Reply-To: <801960547.376634.1307356978180.JavaMail.root@ms3.correo.udc.es> Subject: Problems with genetic algorithms in Mahout MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_376822_657182996.1307357984028" X-Originating-IP: [193.147.40.145] X-Mailer: Zimbra 6.0.7_GA_2470.RHEL5_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.7_GA_2470.RHEL5_64) ------=_Part_376822_657182996.1307357984028 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello!, I am working with genetics algorithms in Mahout. Specifically I am trying to use the "MahoutEvaluator" to evaluate my own FitnessEvaluator based on the DummyEvaluator. The problem is that if I execute the program sequentially without hadoop ($ java -jar geneticoJose2.jar) the program finish correctly, but if I try to execute it in a pseudo-distributed mode ($ /home/jose/Descargas/hadoop-0.20.203.0/bin/hadoop jar geneticoJose2.jar) an error occurs: Exception in thread "main" java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:180) at java.io.DataInputStream.readFully(DataInputStream.java:152) at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1450) at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1428) at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1353) at org.apache.hadoop.io.SequenceFile$Sorter$SegmentDescriptor.nextRawKey(SequenceFile.java:3072) at org.apache.hadoop.io.SequenceFile$Sorter$MergeQueue.merge(SequenceFile.java:2887) at org.apache.hadoop.io.SequenceFile$Sorter.merge(SequenceFile.java:2616) at org.apache.hadoop.io.SequenceFile$Sorter.merge(SequenceFile.java:2587) at org.apache.hadoop.io.SequenceFile$Sorter.merge(SequenceFile.java:2701) at org.apache.mahout.ga.watchmaker.OutputUtils.importEvaluations(OutputUtils.java:77) at org.apache.mahout.ga.watchmaker.MahoutEvaluator.evaluate(MahoutEvaluator.java:79) at es.udc.tic.world.Poblacion.actualizarFitness(Poblacion.java:68) at Principal.main(Principal.java:55) 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.apache.hadoop.util.RunJar.main(RunJar.java:156) Does anybody know why it happens? Could this be produced by incompatibilities between Mahout and Hadoop versions? Thank you in advance. ------=_Part_376822_657182996.1307357984028--