Raakhi-
Guilherme is correct. Each mapper (and reducer) runs independently
and communication between them is not provided for nor encouraged. You
may wish to look into the DistributedCached
(http://wiki.apache.org/hadoop/FAQ#A8,
http://hadoop.apache.org/common/docs/current/mapred_tutorial.html#DistributedCache)
for providing data that are available to all the tasks.
Jakob
Hadoop at Yahoo!
Rakhi Khatwani wrote:
Hi,
i m writing a map reduce program which reads a file from HDFS and
stores the contents in a static map (declared n initialized before executing
map reduce). but however after executing the map-reduce program, my map
returns 0 elements. is there any way i can make the data persistent in the
map?
Regards,
Raakhi Khatwani