You can use the distributed cache to distribute files to your cards, they can open and read files in their configure() method (do not read them in map() , because it will be called many times.)
change
In order to access the file from the local file system in your work to reduce the map, you can add these files to the distributed cache when setting up your job configuration.
JobConf job = new JobConf(); DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"), job);
The MapReduce structure ensures that these files are available to your cartographers.
public void configure(JobConf job) {
and delete the files when your work is done.
source share