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);

Reply via email to