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?

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupmapreduce-user @
categorieshadoop
postedDec 5, '12 at 11:24p
activeDec 8, '12 at 6:31p
posts3
users2
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase