hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinav M Kulkarni <abhinavkulka...@gmail.com>
Subject Provide context to map function
Date Tue, 02 Apr 2013 03:55:43 GMT
Hi,

I have a following scenario:

  * Two mappers (acting on two different files) and one reducer
  * The mapper code for two different files is the same, except for
    minor change which depends on which file is being read
  * Essentially assume there is an if statement - if first file is being
    read do this else do this

So how do I provide this context to map function i.e. file name or say a 
boolean flag variable indicating the file being read?

Thanks,
Abhinav

Mime
View raw message