Return-Path: X-Original-To: apmail-hama-user-archive@www.apache.org Delivered-To: apmail-hama-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 9349A10A02 for ; Sun, 4 May 2014 06:32:06 +0000 (UTC) Received: (qmail 63138 invoked by uid 500); 4 May 2014 06:32:06 -0000 Delivered-To: apmail-hama-user-archive@hama.apache.org Received: (qmail 62942 invoked by uid 500); 4 May 2014 06:32:05 -0000 Mailing-List: contact user-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hama.apache.org Delivered-To: mailing list user@hama.apache.org Received: (qmail 62934 invoked by uid 99); 4 May 2014 06:32:04 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 06:32:04 +0000 Received: from localhost (HELO mail-ig0-f180.google.com) (127.0.0.1) (smtp-auth username edwardyoon, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 06:32:04 +0000 Received: by mail-ig0-f180.google.com with SMTP id c1so3515217igq.13 for ; Sat, 03 May 2014 23:32:03 -0700 (PDT) X-Gm-Message-State: ALoCoQm/ytHrB9Bwisf3kOGmV9psErRqXq8x1CI+IRPJJ8xNmCw2Ruua8oKqEuuUAVB7Z+0VwzzE MIME-Version: 1.0 X-Received: by 10.43.90.202 with SMTP id bj10mr25147051icc.48.1399185123709; Sat, 03 May 2014 23:32:03 -0700 (PDT) Received: by 10.64.87.169 with HTTP; Sat, 3 May 2014 23:32:03 -0700 (PDT) In-Reply-To: References: Date: Sun, 4 May 2014 15:32:03 +0900 Message-ID: Subject: Re: getting EOFException From: "Edward J. Yoon" To: "user@hama.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I roughly read your code, and there's a bug, like https://issues.apache.org/jira/browse/HAMA-868. Modify you code to not use object references, and check your message writable class. On Sun, May 4, 2014 at 3:13 PM, Edward J. Yoon wrot= e: > Hi, > > Please check whether your MyWritableClass is implemented correctly. > > On Sat, May 3, 2014 at 7:26 AM, Attila D=C3=B3r=C3=B3 wrote: >> Hi, >> >> I try to write a graph algorithm, but I get EOFException and I can't fin= d >> where is the mistake. >> I use the SSSP >> example >> as a base. I tried this example and it worked well. I modified the compu= te >> function and some other lines in the SSSP, but I didn't modify the >> SSSPTextReader class, which extends the VertexInputReader. I know that t= he >> EOFException "signals that an end of file or end of stream has been reac= hed >> unexpectedly during input", but I didn't modify any reader or input meth= od, >> so I don't understand how can I get this exception. >> >> In the first superstep I get the proper output, but after the first >> superstep I get this exception: >> >> java.io.EOFException >> at java.io.DataInputStream.readFully(DataInputStream.java:180) >> at java.io.DataInputStream.readFully(DataInputStream.java:152) >> at >> org.apache.hama.bsp.BSPMessageBundle$1.next(BSPMessageBundle.java:157) >> at >> org.apache.hama.bsp.BSPMessageBundle$1.next(BSPMessageBundle.java:118) >> at >> org.apache.hama.bsp.LocalBSPRunner$LocalMessageManager.transfer(LocalBSP= Runner.java:361) >> at org.apache.hama.bsp.BSPPeerImpl.sync(BSPPeerImpl.java:381) >> at org.apache.hama.graph.GraphJobRunner.bsp(GraphJobRunner.java:133) >> at >> org.apache.hama.bsp.LocalBSPRunner$BSPRunner.run(LocalBSPRunner.java:258= ) >> at >> org.apache.hama.bsp.LocalBSPRunner$BSPRunner.call(LocalBSPRunner.java:28= 8) >> at >> org.apache.hama.bsp.LocalBSPRunner$BSPRunner.call(LocalBSPRunner.java:21= 2) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303= ) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303= ) >> at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto= r.java:886) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:908) >> at java.lang.Thread.run(Thread.java:662) >> >> I have no idea what is the problem, so if somebody could help me, I woul= d >> really appreciate that. >> >> (Anyway, here is my code, but I haven't u= sed >> comment so I think it's totally incomprehensible for you) >> >> Thank you in advance for your help, >> Attila > > > > -- > Best Regards, Edward J. Yoon > CEO at DataSayer Co., Ltd. --=20 Best Regards, Edward J. Yoon CEO at DataSayer Co., Ltd.