Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 291C5DE70 for ; Sat, 24 Nov 2012 07:22:45 +0000 (UTC) Received: (qmail 45112 invoked by uid 500); 24 Nov 2012 07:22:39 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 44839 invoked by uid 500); 24 Nov 2012 07:22:37 -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 44800 invoked by uid 99); 24 Nov 2012 07:22:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2012 07:22:36 +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 harsh@cloudera.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2012 07:22:31 +0000 Received: by mail-ie0-f176.google.com with SMTP id 13so8984995iea.35 for ; Fri, 23 Nov 2012 23:22:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=W8gm2QCslQNM5jkB329zuMZnzMCc0IETn6A/VF9W3KA=; b=SPBCbxJTqb9hZzS4CpCLMyd1tG/M7h+KbzrTMrnUZiDNTvfUJzSROEQpNoCvkjJj0h 2F4nLb3haUAb8Exl5WdB02a10Lp1mNg5862bOOPXh1OOjH1e42vePOIHBrpIlMNAMcdx 1Nx7qYM9PhqxUQqbjcu2j2lSDjXaPgCRoUM2f9S8+01RA9++oSVWFOW2flAQ6WX3B/XA SVmSOQd5gTV5VYkLLq6jdJp8f5sBFWWDNAj/BrtZJCtqNtv4mDIb1rHD3Jb7r66u5Q16 qKbpdgXxZboqjaLJmk57fJLXAFrjif3Bkr/98Vn3tJTbcg3AeOaecbLbZxXGjrmn8GvK 3qGg== Received: by 10.50.195.130 with SMTP id ie2mr5642616igc.40.1353741730478; Fri, 23 Nov 2012 23:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.6.129 with HTTP; Fri, 23 Nov 2012 23:21:50 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sat, 24 Nov 2012 12:51:50 +0530 Message-ID: Subject: Re: MapReduce APIs To: "" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQl7wrURk/fhhESoUflNvdP1ZjZmfT46eYvzCbvxU8W9A7e0eWb2sCnx5lvRlKo8FCSrwv0A X-Virus-Checked: Checked by ClamAV on apache.org You could use the org.apache.hadoop.filecache.DistributedCache API as: DistributedCache.addCacheFile(URI, job.getConfiguration()); On Sat, Nov 24, 2012 at 3:06 AM, Kartashov, Andy w= rote: > Guys, > > > > I know that there is old and new API for MapReduce. The old API is found > under org.apache.hadoop.mapred and the new is under > org.apache.hadoop.mapreduce > > > > I successfully used both (the old and the new API) writing my MapReduce > drivers. > > > > The problem came up when I tried to use distributed cache. My new API Job > object could not locate > > public void addCacheFile(URI uri) method and I was scratching my head why= . > > > > What I did not reaslise is that despite new and oold API there is also > Hadoop 0.20 vs Hadoop 2.0.0 APIs that use exact same packages. > > The old Hadoop.0.20.00 new Mapreduce API class Job simply doesn=92t have= that > method =93addCacheFile(URI uri)=94. > > > > I am running Hadoop 2.0.0. so could not understand why the method was not > inside the class. I ended up rewriting MR job under old API mapred packag= e > and ran soccessfully. > > > > Can anyone shed some light on this? > > > > Thanks > > AK > > > > > > NOTICE: This e-mail message and any attachments are confidential, subject= to > copyright and may be privileged. Any unauthorized use, copying or disclos= ure > is prohibited. If you are not the intended recipient, please delete and > contact the sender immediately. Please consider the environment before > printing this e-mail. AVIS : le pr=E9sent courriel et toute pi=E8ce joint= e qui > l'accompagne sont confidentiels, prot=E9g=E9s par le droit d'auteur et pe= uvent > =EAtre couverts par le secret professionnel. Toute utilisation, copie ou > divulgation non autoris=E9e est interdite. Si vous n'=EAtes pas le destin= ataire > pr=E9vu de ce courriel, supprimez-le et contactez imm=E9diatement l'exp= =E9diteur. > Veuillez penser =E0 l'environnement avant d'imprimer le pr=E9sent courrie= l --=20 Harsh J