Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - How to create an archive-file in Java to distribute a MapFile via Distributed Cache


Copy link to this message
-
Re: How to create an archive-file in Java to distribute a MapFile via Distributed Cache
Shi Yu 2012-05-04, 12:41

My humble experience:  I would prefer specifying the files in
command line using -files option, then treat them explicitly in
the Mapper configure or setup function using

File f1 = new File("file1name");
File f2 = new File("file2name");

Cause I am not 100% sure how does distributed cached determine
the order of paths (archives) stored in the array.  I once
messed up at this point so from then on I stick on the old
method.