Try this inside your mapper :
FileSplit fileSplit = (FileSplit)context.getInputSplit();
String filename = fileSplit.getPath().getName();
Try this to do it inside configure() through the old API :
String fileName = new String();
public void configure(JobConf job)
{
filename = job.get("map.input.file");
}