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 C6DDB10686 for ; Wed, 26 Mar 2014 23:35:05 +0000 (UTC) Received: (qmail 74561 invoked by uid 500); 26 Mar 2014 23:34:58 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 74411 invoked by uid 500); 26 Mar 2014 23:34:58 -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 74404 invoked by uid 99); 26 Mar 2014 23:34:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 23:34:58 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jkpoon@ucdavis.edu does not designate 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 23:34:52 +0000 Received: by mail-ob0-f170.google.com with SMTP id uz6so3450197obc.29 for ; Wed, 26 Mar 2014 16:34:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=AjKmNjmNRytuhY/iXUO8ghk4EjXdlkm5pCwQBbON3T0=; b=ajbmoCnVyTqvx7aIkCDSHhly+7WQQBWc0HuxeKP4fvUNqHESVbCUZJd4PPZv8PWyy4 4xaFwRb2rvRi1OkYpCf4G4F25MasnnBs/j6FPoL87OxB9vVbqHfI6E/esMTojdREDuMT 9Wnvp/wgC7PAM9CF+Sls0MYRcVMbcP3FLFAIhlfzDvbbL6V7AHGOC/NhaapGBvu3oOsm 1vJKGJroiARrLWVLjargzp/f2rrtawJwWC+KumYIjZa3O0ZgCiPFBjxeQJ/JZsKuLIYz 9PJRJqB4WhS2A+9ZBXLpjvB6AP+3ySyy3zjVRsMKIqeQ63BkhtDslTkfPpcnbCI+Ew94 /eCQ== X-Gm-Message-State: ALoCoQn40xFHZhBwh4SO7KH6DzEbcGkDxZj9fPFJg2Asg5CyS/zLMubsi/N56nBNYKrpn6Y/J58n MIME-Version: 1.0 X-Received: by 10.182.87.42 with SMTP id u10mr39219864obz.22.1395876869969; Wed, 26 Mar 2014 16:34:29 -0700 (PDT) Received: by 10.182.29.201 with HTTP; Wed, 26 Mar 2014 16:34:29 -0700 (PDT) Date: Wed, 26 Mar 2014 16:34:29 -0700 Message-ID: Subject: Hadoop 2.2.0 Distributed Cache From: Jonathan Poon To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e013cba62fc230104f58ae8ca X-Virus-Checked: Checked by ClamAV on apache.org --089e013cba62fc230104f58ae8ca Content-Type: text/plain; charset=ISO-8859-1 Hi Everyone, I'm submitting a MapReduce job using the -files option to copy a text file that contains properties I use for the map and reduce functions. I'm trying to obtain the local cache files in my mapper function using: Path[] paths = context.getLocalCacheFiles(); However, i get an error saying getLocalCacheFiles() is undefined. I've imported the hadoop-mapreduce-client-core-2.2.0.jar as part of my build environment in Eclipse. Any ideas on what could be incorrect? If I'm incorrectly using the distributed cache, could someone point me to an example using the distributed cache with Hadoop 2.2.0? Thanks for your help! Jonathan --089e013cba62fc230104f58ae8ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Everyone,

I'm submitting a MapRe= duce job using the -files option to copy a text file that contains properti= es I use for the map and reduce functions. =A0

I&#= 39;m trying to obtain the local cache files in my mapper function using:

Path[] paths =3D context.getLocalCacheFiles();

However, i get an error saying getLocalCacheFiles() is und= efined. =A0I've imported the hadoop-mapreduce-client-core-2.2.0.jar as = part of my build environment in Eclipse. =A0

Any ideas on what could be incorrect? =A0
If I'm incorrectly using the distributed cache, could someo= ne point me to an example using the distributed cache with Hadoop 2.2.0? = =A0

Thanks for your help!

Jonathan= =A0
--089e013cba62fc230104f58ae8ca--