hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lei liu <liulei...@gmail.com>
Subject use DistributedCache to add many files to class path
Date Thu, 17 Feb 2011 03:50:57 GMT
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?



View raw message