Re: problem getting map input filename

2009-06-04 Thread Rares Vernica
On 6/2/09, Rares Vernica wrote: > > I have a problem getting the map input file name. Here is what I tried: > > public class Map extends Mapper { > > public void map(Object key, Text value, Context context) > throws IOException, InterruptedException { > Configuration conf =

Re: problem getting map input filename

2009-06-03 Thread Rares Vernica
On 6/3/09, He Yongqiang wrote: > > take a look at HADOOP-5368, :) There you set the "map.input.file", I think it should already be set by Hadoop.

Re: problem getting map input filename

2009-06-03 Thread He Yongqiang
take a look at HADOOP-5368, :) On 09-6-4 上午12:27, "Rares Vernica" wrote: > On 6/2/09, jason hadoop wrote: >> >> you can always dump the entire property space and work it out that way. > > I dumped the property space and I could only find "mapred.input.dir". > There was no "mapred.input.file".

Re: problem getting map input filename

2009-06-03 Thread Rares Vernica
On 6/2/09, jason hadoop wrote: > > you can always dump the entire property space and work it out that way. I dumped the property space and I could only find "mapred.input.dir". There was no "mapred.input.file". -- Rares

Re: problem getting map input filename

2009-06-03 Thread Sharad Agarwal
conf.get("map.input.file") should work. If not, then it is a bug in new mapreduce api in 0.20 - Sharad

Re: problem getting map input filename

2009-06-02 Thread jason hadoop
you can always dump the entire property space and work it out that way. I haven't used the 0.20 api's yet so I can't speak to them On Tue, Jun 2, 2009 at 10:52 AM, Rares Vernica wrote: > On 6/2/09, randy...@comcast.net wrote: > > > > Your Map class needs to have a configure method that can acce

Re: problem getting map input filename

2009-06-02 Thread Rares Vernica
On 6/2/09, randy...@comcast.net wrote: > > Your Map class needs to have a configure method that can access the JobConf. > Like this: In Hadoop 0.20 the new Mapper class does no longer have "configure" and JobConf has been replaced with Job. In the Mapper methods, you now get a Context object. >

Re: problem getting map input filename

2009-06-02 Thread randysch
ent: Tuesday, June 2, 2009 12:45:02 PM GMT -05:00 US/Canada Eastern Subject: problem getting map input filename Hello, I have a problem getting the map input file name. Here is what I tried: public class Map extends Mapper { public void map(Object key, Text value, Context context)

problem getting map input filename

2009-06-02 Thread Rares Vernica
Hello, I have a problem getting the map input file name. Here is what I tried: public class Map extends Mapper { public void map(Object key, Text value, Context context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); Sy