You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Hans Uhlig <hu...@uhlisys.com> on 2012/12/06 00:24:26 UTC
How to acquire Input Filename
I am currently using multiple inputs to merge quite a few different but
related filetypes and I am attempting to track down some bad data. However
Multiple inputs shields the FileSplit behind a TaggedInputSplit and
map.input.file is no longer used. How can one get the file path now for
tracking down problems?
Re: How to acquire Input Filename
Posted by Hans Uhlig <hu...@uhlisys.com>.
As I said, getInputSplit() Returns a TaggedInputSplit which is private.
On Thu, Dec 6, 2012 at 7:50 AM, Olivier Varene - echo <va...@echo.fr>wrote:
> Have you tried with
>
> String fileName = ((org.apache.hadoop.mapreduce.lib.input.FileSplit) context.getInputSplit()).getPath().getName();
>
>
> ?
>
> hope it helps
> Olivier
>
> Le 6 déc. 2012 à 00:24, Hans Uhlig a écrit :
>
> I am currently using multiple inputs to merge quite a few different but
> related filetypes and I am attempting to track down some bad data. However
> Multiple inputs shields the FileSplit behind a TaggedInputSplit and
> map.input.file is no longer used. How can one get the file path now for
> tracking down problems?
>
>
>
Re: How to acquire Input Filename
Posted by Olivier Varene - echo <va...@echo.fr>.
Have you tried with
String fileName = ((org.apache.hadoop.mapreduce.lib.input.FileSplit) context.getInputSplit()).getPath().getName();
?
hope it helps
Olivier
Le 6 déc. 2012 à 00:24, Hans Uhlig a écrit :
> I am currently using multiple inputs to merge quite a few different but related filetypes and I am attempting to track down some bad data. However Multiple inputs shields the FileSplit behind a TaggedInputSplit and map.input.file is no longer used. How can one get the file path now for tracking down problems?
How to acquire Input Filename
Posted by Hans Uhlig <hu...@uhlisys.com>.
I am currently using multiple inputs to merge quite a few different but
related filetypes and I am attempting to track down some bad data. However
Multiple inputs shields the FileSplit behind a TaggedInputSplit and
map.input.file is no longer used. How can one get the file path now for
tracking down problems?