Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 D14C67FCD for ; Wed, 3 Aug 2011 13:10:31 +0000 (UTC) Received: (qmail 33115 invoked by uid 500); 3 Aug 2011 13:10:28 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 33058 invoked by uid 500); 3 Aug 2011 13:10:27 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 33050 invoked by uid 99); 3 Aug 2011 13:10:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 13:10:27 +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 (nike.apache.org: domain of harsh@cloudera.com designates 209.85.161.176 as permitted sender) Received: from [209.85.161.176] (HELO mail-gx0-f176.google.com) (209.85.161.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 13:10:19 +0000 Received: by gxk7 with SMTP id 7so608242gxk.35 for ; Wed, 03 Aug 2011 06:09:59 -0700 (PDT) Received: by 10.236.92.71 with SMTP id i47mr5737906yhf.192.1312376999058; Wed, 03 Aug 2011 06:09:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.60.163 with HTTP; Wed, 3 Aug 2011 06:09:39 -0700 (PDT) In-Reply-To: <1312374957.98517.YahooMailNeo@web36107.mail.mud.yahoo.com> References: <1312374957.98517.YahooMailNeo@web36107.mail.mud.yahoo.com> From: Harsh J Date: Wed, 3 Aug 2011 18:39:39 +0530 Message-ID: Subject: Re: TotalOrderPartitioner with new api - help To: common-user@hadoop.apache.org, Sofia Georgiakaki Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Sofia, I'd recommend using the old (actually, stable) API for development right now, when using 0.20.2. Do not be confused by the deprecation marks since it has been un-deprecated for later releases. Using the stable API should rid you of the trouble of patching the whole thing up. I.e., use JobConf+JobClient+'mapred'-package to build and run jobs instead of the 'Job' class and 'mapreduce' package. On Wed, Aug 3, 2011 at 6:05 PM, Sofia Georgiakaki wrote: > Good evening, > > > > I would like to ask you a question regarding the use of TotalOrderPartiti= oner. > I am working on my diploma thesis, and I need to use the > TotalOrderPartitioner (with the InputSampler of course), under Hadoop > 0.20.2 > > In > order to use it, I need to apply the patch > (https://issues.apache.org/jira/browse/MAPREDUCE-366), but > it fails for some reason. > > If I am correct, the patch modifies the TotalOrderPartitioner & InputSamp= ler classes in =A0the org.apache.hadoop.mapred.lib package, in order to dep= recate them and then it specifies 2 new classes to be used: TotalOrderParti= tioner & InputSampler in org.apache.hadoop.mapreduce.lib.partitioner, using= the new API. > > > I would like to ask, if someone has successfully applied the patch. Could= he send me the new classes > (TotalOrderPartitioner and InputSampler) from their hadoop installation, = after the patch is applied? (it affects the 2 classes > both in org.apache.hadoop.mapred.lib and > org.apache.hadoop.mapreduce.lib.partitioner packages). Or at least you > could suggest another solution? > > > I hope this will not consume your time. I apologize for the inconvenience= , but I > need these two classes in order to finish my diploma thesis, and I don't = know from who I should ask for help. > > > Thank you very much in advance, > Sofia Georgiakaki > undergraduate student > department of Electronic & Computer Engineering > Technical University of Crete, Greece --=20 Harsh J