hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhangguoping zhangguoping <zhangguopin...@gmail.com>
Subject Re: how to get the current input file in a Mapper
Date Wed, 30 Jun 2010 06:35:00 GMT
It works. Thanks.

2010/6/28 Ted Yu <yuzhihong@gmail.com>

> How about:
> FileSplit fileSplit = (FileSplit) context.getInputSplit();
> String sFileName = fileSplit.getPath().getName();
>
>
> On Sun, Jun 27, 2010 at 7:59 AM, zhangguoping zhangguoping <
> zhangguoping96@gmail.com> wrote:
>
> > Hi,
> >
> > how to get the current input file in a Mapper in 0.20.2 ?
> >
> > Thanks,
> >
>

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