hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amogh Vasekar <am...@yahoo-inc.com>
Subject Re: Is it possible to share a key across maps?
Date Tue, 12 Jan 2010 20:32:06 GMT
(Sorry for the spam if any, mails are bouncing back for me)

Hi,
In setup() use this,
FileSplit split = (FileSplit)context.getInputSplit();
 split.getPath() will return you the Path.
Hope this helps.

Amogh


On 1/13/10 1:25 AM, "Raymond Jennings III" <raymondjiii@yahoo.com> wrote:

Hi Gang,
I was able to use this on an older version that uses the JobClient class to run the job but
not on the newer api with the Job class.  The Job class appears to use a setup() method instead
of a configure() method but the "map.input.file" attribute does not appear to be available
via the conf class the setup() method.  Have you tried to do what you described using the
newer api?  Thank you.

--- On Fri, 1/8/10, Gang Luo <lgpublic@yahoo.com.cn> wrote:


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