context.getInputSplit
, this will come back the InputSplit, which if you're making use ofTextInputFormat
, you can throw to aFileInputSplit
and after that callgetPath
to obtain the file title. I wear't believe you can make use of this method with CompositeInputFormat though as you gained't know where the Writables in the TupleWritable possess come from.