hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Thiruvathuru <thiruvath...@gmail.com>
Subject Distributed Cache
Date Sat, 03 Apr 2010 06:44:12 GMT
Hi,

I'm trying to use Distributed cache to add a jar file to the job and I'm
using the following code, but it didn't work. If you have used it I would
appreciate if you can post a sample

Thank you
Raja Thiruvathuru

        Configuration conf = new Configuration();
Job job = new Job(conf, "MyDriver ");
        DistributedCache.addCacheFile(new
URI("hdfs://localhost:9000/user/guest/lib/userlib.jar"), conf);
        DistributedCache.addArchiveToClassPath(new
Path("hdfs://localhost:9000/user/guest/lib/userlib.jar"), conf);

Mime
View raw message