Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 CD5C0D20F for ; Thu, 25 Oct 2012 15:12:26 +0000 (UTC) Received: (qmail 94247 invoked by uid 500); 25 Oct 2012 15:12:22 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 94165 invoked by uid 500); 25 Oct 2012 15:12:21 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 94141 invoked by uid 99); 25 Oct 2012 15:12:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 15:12:21 +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 cordioli.alberto@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 15:12:14 +0000 Received: by mail-ea0-f176.google.com with SMTP id n12so611598eaa.35 for ; Thu, 25 Oct 2012 08:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=GfG1etbmDqtOVugpaziGWuIiCd+J9auAvxNUGxR2S3g=; b=e+pCthT5T4TUajkckZkkfsWwIdpWN6nkQayukwCU3LnN6KaAng1lgGUMrZisp+7nLa zj8WTzJn/UK2s+pJBvzBR6pxU8Vrh2WVIyvYDoXghJuXtwZJ9LxUDHnuIO9VYg25PvnJ BiNP4st5W7dOwJOUNFjCSnI0TSkAGBgtib2K9O1/vZm+CFbfLYlyOJCQRaTUnr/xInO2 Bar5UIIq+Gyw5xQBB7ekYOggi5AiBJP2a52a71kdXEZT7S59ZkgHuoXycd1dP0eo5eS2 fBeZDEamnYLsdwoePADOXZujkhdWahv+PZ3HAzXaiu42JOaujJbo36xQUvVZcTMwwtsT T7EQ== Received: by 10.14.184.2 with SMTP id r2mr26804767eem.43.1351177914176; Thu, 25 Oct 2012 08:11:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.127.200 with HTTP; Thu, 25 Oct 2012 08:11:38 -0700 (PDT) In-Reply-To: References: <1140590055-1350913209-cardhu_decombobulator_blackberry.rim.net-45137785-@b27.c16.bise7.blackberry> From: Alberto Cordioli Date: Thu, 25 Oct 2012 17:11:38 +0200 Message-ID: Subject: Re: Old vs New API To: user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Thanks, Alberto On 24 October 2012 16:33, Harsh J wrote: > Using either is fully supported in 2.x+ at least. Neither is > deprecated, but I'd personally recommend using the new API going > forward. There's no known major issues with it. > > FWIW, Apache HBase uses the new API for its MR-side utilities. > > But in any case - no worries if you stick with one over the other for > whatever reason, not until a couple more major releases I should think. > > On Wed, Oct 24, 2012 at 5:16 PM, Michael Segel > wrote: >> They were official, back around 2009, hence the first API was deprecated. >> >> The reason that they removed the deprecation was that the 'new' API didn't have all of the features/methods of the old APIs. >> >> I learned using the new APIs and ToolRunner is your friend. >> So I would suggest using the new APIs. >> >> But that's just me. >> >> >> On Oct 24, 2012, at 5:02 AM, Alberto Cordioli wrote: >> >>> Thanks Bejoy, >>> >>> my only concern is that the new api were to become "official" quite >>> some time ago, but this seems to be a long process. >>> And honestly I don't understand why. The changes are not so invasive. >>> I just want to be sure to learn the more suitable api for the future. >>> >>> Anyway, as you said, let's see if a committer can comment on this. >>> >>> >>> Alberto >>> >>> On 22 October 2012 15:40, Bejoy KS wrote: >>>> Hi alberto >>>> >>>> The new mapreduce API is coming to shape now. The majority of the classes available in old API has been ported to new API as well. >>>> >>>> The Old mapred API was marked depreciated in an earlier version of hadoop (0.20.x) but later it was un-depreciated as all the functionality in old API was not available in new mapreduce API at that point. >>>> >>>> Now mapreduce API is pretty good and you can go ahead with that for development. AFAIK mapreduce API is the future. >>>> >>>> Let's wait for a commiter to officially comment on this. >>>> >>>> Regards >>>> Bejoy KS >>>> >>>> Sent from handheld, please excuse typos. >>>> >>>> -----Original Message----- >>>> From: Alberto Cordioli >>>> Date: Mon, 22 Oct 2012 15:22:41 >>>> To: >>>> Reply-To: user@hadoop.apache.org >>>> Subject: Old vs New API >>>> >>>> Hi all, >>>> >>>> I am using last stable Hadoop version (1.0.3) and I am implementing >>>> right now my first MR jobs. >>>> I read about the presence of 2 API: the old and the new one. I read >>>> some stuff about them, but I am not able to find quite fresh news. >>>> I read that the old api was deprecated, but in my version they do not >>>> seem to. Moreover the new api does not have all the features >>>> implemented (see for example the package contrib with its classes to >>>> do joins). >>>> >>>> I found this post on the ML: >>>> >>>> but it is very old (2010) and I think that further changes have been >>>> made meanwhile. >>>> >>>> My question is: does make sense to use the new api, instead of the old >>>> one? Does this new version providing other functionalities with >>>> respect to the older one? >>>> Or, given the slow progress in implementation, is better to use the old api? >>>> >>>> >>>> Thanks. >>> >>> >>> >>> -- >>> Alberto Cordioli >>> >> > > > > -- > Harsh J -- Alberto Cordioli