Re: The name of the current input file during a map

2009-11-26 Thread Amogh Vasekar
-mapred.input.file +map.input.file Should work Amogh On 11/26/09 12:57 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello again, I'm using Hadoop 0.21 and its context object e.g public void setup(Context context) { Configuration cfg = context.getConfiguration();

Re: The name of the current input file during a map

2009-11-26 Thread Owen O'Malley
On Nov 25, 2009, at 11:27 PM, Saptarshi Guha wrote: I'm using Hadoop 0.21 and its context object In the new API you can re-write that as: ((FIleSplit) context.getInputSplit()).getPath() -- Owen

Re: The name of the current input file during a map

2009-11-25 Thread Saptarshi Guha
Thank you. Regards Saptarshi On Thu, Nov 26, 2009 at 2:10 AM, Amogh Vasekar am...@yahoo-inc.com wrote: Conf.get(map.input.file) is what you need. Amogh On 11/26/09 12:35 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, I have a set of input files part-r-* which I will pass