hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Jennings III <raymondj...@yahoo.com>
Subject Obtaining name of file in map task
Date Tue, 12 Jan 2010 16:04:44 GMT
I am trying to determine what the name of the file that is being used for the map task.  I
am trying to use the setup() method to read the input file with:

public void setup(Context context) {

    	Configuration conf = context.getConfiguration();
    	String inputfile = conf.get("map.input.file");

But inputfile is always null.  Anyone have a pointer on how to do this?  Thanks.


View raw message