hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Botelho, Andrew" <Andrew.Bote...@emc.com>
Subject New Distributed Cache
Date Wed, 10 Jul 2013 17:15:39 GMT
Hi,

I am trying to store a file in the Distributed Cache during my Hadoop job.
In the driver class, I tell the job to store the file in the cache with this code:

Job job = Job.getInstance();
job.addCacheFile(new URI("file name"));

That all compiles fine.  In the Mapper code, I try accessing the cached file with this method:

Path[] localPaths = context.getLocalCacheFiles();

However, I am getting warnings that this method is deprecated.
Does anyone know the newest way to access cached files in the Mapper code? (I am using Hadoop
2.0.5)

Thanks in advance,

Andrew

Mime
View raw message