hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bharath v <bharathvissapragada1...@gmail.com>
Subject Small doubt in MR
Date Sun, 03 Jan 2010 04:04:22 GMT
Hi,

I want a particular "section of code" to run only in any "ONE" of the
mappers . So I employed the following procedure.

Main-Class
{

        public boolean flag = true;

        Map-Class
       {
             if(flag)
            {

                flag=false;
               /* section of code */
            }


}

I am running this code on in pseudo-distributed mode and its working fine .
I doubt whether this runs correctly in distributed mode because , mappers on
other systems have to notified of the changed "flag" .. Any Comments ? If
this is wrong , any suggestions on what method I must follow to achieve this
functionality in D-mode .

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message