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 =
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.
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".
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
conf.get("map.input.file") should work. If not, then it is a bug in new
mapreduce api in 0.20
- Sharad
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
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.
>
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)
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