hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Giving filename as key to mapper ?
Date Fri, 15 Jul 2011 12:40:19 GMT
You can retrieve the filename in the new API as described here:


In the old API, its available in the configuration instance of the
mapper as key "map.input.file". See the table below this section
for more such goodies.

On Fri, Jul 15, 2011 at 5:44 PM, praveenesh kumar <praveenesh@gmail.com> wrote:
> Hi,
> How can I give filename as key to mapper ?
> I want to know the occurence of word in set of docs, so I want to keep key
> as filename. Is it possible to give input key as filename in map function ?
> Thanks,
> Praveenesh

Harsh J

View raw message