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

Switch to Threaded View
MapReduce, mail # user - use DistributedCache to add many files to class path


Copy link to this message
-
Re: use DistributedCache to add many files to class path
Alejandro Abdelnur 2011-02-17, 03:59
Lei Liu,

You have a cut&paste error the second addition should use 'tairJarPath' but
it is using the 'jeJarPath'

Hope this helps.

Alejandro

On Thu, Feb 17, 2011 at 11:50 AM, lei liu <[EMAIL PROTECTED]> wrote:

> I use DistributedCache  to add two files to class path,  exampe below code
> :
>        String jeJarPath = "/group/aladdin/lib/je-4.1.7.jar";
>         DistributedCache.addFileToClassPath(new Path(jeJarPath), conf);
>
>         String tairJarPath = "/group/aladdin/lib/tair-aladdin-2.3.1.jar"
>         DistributedCache.addFileToClassPath(new Path(jeJarPath), conf);
>
> when map/reduce is executing,  the
> "/group/aladdin/lib/tair-aladdin-2.3.1.jar" file is added to class path,
> but  the "/group/aladdin/lib/je-4.1.7.jar" file is not added to class path.
>
> How can I add many files to class path?
>
>
>
> Thanks,
>
>
> LiuLei
>