I want to use the distributed cache to allow my mappers to access data. In main, I\'m using the command
DistributedCache.addCacheFile(new URI(\"/user/peter/cac
Configuration conf = new Configuration(); Job job = new Job(conf, "wordcount"); DistributedCache.addCacheFile(new URI("/userpetercacheFiletestCache1"),job.getConfiguration());
You can also do it in this way.