Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 31983 invoked from network); 24 Nov 2009 01:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Nov 2009 01:53:51 -0000 Received: (qmail 76685 invoked by uid 500); 24 Nov 2009 01:53:50 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 76599 invoked by uid 500); 24 Nov 2009 01:53:50 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 76589 invoked by uid 99); 24 Nov 2009 01:53:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 01:53:49 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.85.211.193] (HELO mail-yw0-f193.google.com) (209.85.211.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 01:53:47 +0000 Received: by ywh31 with SMTP id 31so10510261ywh.30 for ; Mon, 23 Nov 2009 17:53:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.54.1 with SMTP id g1mr7522240agk.20.1259027606236; Mon, 23 Nov 2009 17:53:26 -0800 (PST) In-Reply-To: <61fec3fc0911231439s5fe0ef06te1c80cee0bc0f643@mail.gmail.com> References: <61fec3fc0911231410y23a02102xf52f7bed2f2afa1e@mail.gmail.com> <61fec3fc0911231439s5fe0ef06te1c80cee0bc0f643@mail.gmail.com> From: Todd Lipcon Date: Mon, 23 Nov 2009 17:53:06 -0800 Message-ID: <45f85f70911231753t1107a609i294cdb9fe149e68@mail.gmail.com> Subject: Re: How compile hadoop-0.20.1 To: mapreduce-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6407b543b74b504791435d1 --0016e6407b543b74b504791435d1 Content-Type: text/plain; charset=ISO-8859-1 Hi Pedro, If you're trying to compile 0.20.1, that version is pre-project-split. There's only one jar because it predates the point at which Hadoop was split into common/hdfs/MR. I've answered the specific questions below: On Mon, Nov 23, 2009 at 2:39 PM, psdc1978 wrote: > Hi all, > > > 1 - I'm trying to compile hadoop-0.20.1 but I'm facing several > errors. Hadoop includes several subprojects, but these subprojects > are all compiled in one file called hadoop-0.20.1-core.jar. If I just > want to update the code in the MapReduce component, do I have to > compile all the project? > In 0.20.1, yes. But it compiles quickly - only a couple minutes. > > 2 - Why Hadoop only have one jar for all the project? For example, > MapReduce subcomponent could be inside mapreduce.jar, Common > subcomponent could be inside common.jar, HDFS subcomponent could be > inside hdfs.jar, etc. > > As noted above, 0.20.1 is pre-split. In 0.21 and above, it will be separate jars as you expected. > 3 - Is there any tutorial that helps how to compile Hadoop, > especially only the MapReduce component? > > In 0.20.1, you can't do just one component, really. "ant bin-package" is a good way to compile that won't require a lot of other junk on your system. > 4 - Should I try to compile MapReduce in windows with Cygwin, or > should I compile inside Ubuntu? > > Ubuntu should be easier, though I'm told it's possible to do so in Cygwin. -Todd --0016e6407b543b74b504791435d1--