Return-Path: X-Original-To: apmail-incubator-giraph-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-giraph-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 801929B66 for ; Thu, 9 Feb 2012 19:31:20 +0000 (UTC) Received: (qmail 73580 invoked by uid 500); 9 Feb 2012 19:31:20 -0000 Delivered-To: apmail-incubator-giraph-user-archive@incubator.apache.org Received: (qmail 73477 invoked by uid 500); 9 Feb 2012 19:31:19 -0000 Mailing-List: contact giraph-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: giraph-user@incubator.apache.org Delivered-To: mailing list giraph-user@incubator.apache.org Received: (qmail 73469 invoked by uid 99); 9 Feb 2012 19:31:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 19:31:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jghoman@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-wi0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 19:31:13 +0000 Received: by wibhq7 with SMTP id hq7so1482270wib.6 for ; Thu, 09 Feb 2012 11:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=KskGubcI69TnNK/5tNpgsfTEyIpDOnejeNWxah9hGkU=; b=rQ4P3BXE5yDqx1l+MY49dfbRr6xNqPCc/brUZ6caHqBQihHqCmh2xyqsyEokYzt6TV 0E9KQEw/oHOidI0Ue1rRtDcc2FlkQ76S43RmY5auQqPMU8xp5dfGv6UymIJpxB6Tl2TM bcZq1XcMvVeAlBa9BOQAgF3VIm/aX/uxxmfsM= Received: by 10.216.134.157 with SMTP id s29mr1246540wei.1.1328815852180; Thu, 09 Feb 2012 11:30:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.107.166 with HTTP; Thu, 9 Feb 2012 11:30:22 -0800 (PST) In-Reply-To: <6EF2673E-4D3F-4BC7-8B33-51117DC88A10@potomacfusion.com> References: <6EF2673E-4D3F-4BC7-8B33-51117DC88A10@potomacfusion.com> From: Jakob Homan Date: Thu, 9 Feb 2012 11:30:22 -0800 Message-ID: Subject: Re: Giraph Architecture bug in To: giraph-user@incubator.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > Since we call waitForCompletion() (which calls submit() internally) in Gi= raphJob#run(), we cannot override those methods. Why can't we just call super.waitForCompletion() and override them to our users? It seems there are some advantages to GiraphJob being-a Job (easier integration with schedulers, Pig, etc.), but I'm not sure if it outweighs the inheritance issues that may be reaised... On Wed, Feb 8, 2012 at 9:57 PM, David Garcia wr= ote: > Not tonight. =A0But I might be able to tomorrow. > > Sent from my HTC Inspire=99 4G on AT&T > > > ----- Reply message ----- > From: "Avery Ching" > To: "giraph-user@incubator.apache.org" > Subject: Giraph Architecture bug in > Date: Wed, Feb 8, 2012 8:17 pm > > > > AFAIK we don't have any SOP for opening issues.=A0 Maybe I'll take a crac= k > at this one tonight if I find some time, unless you were planning to > work on it David. > > Avery > > On 2/8/12 5:46 PM, David Garcia wrote: >> I opened up >> >> * GIRAPH-144 >> >> >> I apologize if I didn't do it up according to project SOP's.=A0 I haven'= t >> had time to read it thoroughly. >> >> -David >> >> >> On 2/8/12 7:29 PM, "David Garcia"=A0 wrote: >> >>> Yeah, I'll write something up. >>> >>> >>> On 2/8/12 7:26 PM, "Avery Ching"=A0 wrote: >>> >>>> Since we call waitForCompletion() (which calls submit() internally) in >>>> GiraphJob#run(), we cannot override those methods.=A0 A better fix wou= ld >>>> probably be to use composition rather than inheritance (i.e. >>>> >>>> public class GiraphJob { >>>>=A0=A0=A0=A0=A0 Job internalJob; >>>> } >>>> >>>> and expose the methods we would like as necessary.=A0 There are other >>>> methods we don't want the user to call, (i.e. setMapperClass(), etc.). >>>> David, can you please open an issue for this? >>>> >>>> Avery >>>> >>>> On 2/8/12 5:17 PM, David Garcia wrote: >>>>> This is a very subtle bug.=A0 GiraphJob inherits from >>>>> org.apache.mapreduce.Job.=A0 However, the methods submit() and >>>>> waitForCompletion() are not overridden.=A0 I assumed that they were >>>>> implemented, so when I called either one of these methods, the >>>>> framework >>>>> started up identity mappers/reducers.=A0 A simple fix is to throw >>>>> unsupported operation exceptions or to implement these methods. >>>>> Perhaps >>>>> this has been done already? >>>>> >>>>> -David >>>>> >>>>> On 2/7/12 7:46 PM, "David Garcia"=A0=A0 wr= ote: >>>>> >>>>>> I am running into a weird error that I haven't seen yet (I suppose >>>>>> I've >>>>>> been lucky).=A0 I see the following in the logging: >>>>>> >>>>>> org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoo= p >>>>>> library for your platform... using builtin-java classes where >>>>>> applicable >>>>>> >>>>>> >>>>>> In the job definition, the property "mapreduce.map.class" is not eve= n >>>>>> defined.=A0 For Giraph, this is usually set to >>>>>> "mapreduce.map.class=3Dorg.apache.giraph.graph.GraphMapper" >>>>>> >>>>>> I'm building my project with hadoop 0.20.204. >>>>>> >>>>>> When I build the GiraphProject myself (and run my own tests with the >>>>>> projects dependencies), I have no problems.=A0 The main difference i= s >>>>>> that >>>>>> I'm using a Giraph dependency in my work project.=A0 All input is >>>>>> welcome. >>>>>> Thx!! >>>>>> >>>>>> -David >>>>>> >