You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Yair Even-Zohar <ya...@revenuescience.com> on 2008/10/03 17:41:44 UTC
Unable to retrieve filename using "mapred.input.file"
I'm running map reduce and have the following lines of code:
public void configure(JobConf job) {
mapTaskId = job.get("mapred.task.id");
inputFile = job.get("mapred.input.file");
The problem I'm facing is that the inputFile I'm getting is null (the
mapTaskId works fine).
The input file are all the files in a given directory and they are all
gzipped. Something like .../blah/*.gz
Any suggestion on how to get the name of the processed filename to the
map task?
Thanks
-Yair