Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB