Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Unable to Add Jars to distributed cache


Copy link to this message
-
Re: Unable to Add Jars to distributed cache
On 31 October 2012 12:13, Saurabh Mishra <[EMAIL PROTECTED]>wrote:

> Hi,
> I tried adding jars to distributed cache through following code :
>                 DistributedCache.addArchiveToClassPath(path, jobConf);
>                 DistributedCache.addCacheArchive(path.toUri(), jobConf);
>
> It worked fine for one cluster which is running clodera hadoop
> installation(cdh3u1).
> But when i tried the same job on a self setup apache hadoop cluster
> (0.20.0) it threw class not found exception. I tried matching the job.xml's
> for their tracker jobs, but there was no significatn difference between
> them. Still the problem persists.
>
>
>
 (0.20.0) is a pretty old Hadoop version -you'd be best of downloading
Hadoop 1.10 -it will have the Distribute Cache APIs