hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: how to get the current input file in a Mapper
Date Sun, 27 Jun 2010 18:17:52 GMT
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