Hello Raakhi,
Since mapreduce tasks are executed on different virtual machines across the
cluster, you won't be able to share a static map between them. However, you
could use a different approach. For example, you could use HBase (hbase.org)
to hold your objects during the execution of your program.

On Wed, Sep 30, 2009 at 10:27 AM, Rakhi Khatwani <rkhatw...@gmail.com>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
>



-- 
Guilherme

msn: guigermog...@hotmail.com
homepage: http://sites.google.com/site/germoglio/

Reply via email to