Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
Hadoop does not set the "map.input.file" variable. I tried the fallowing and all I get is "null".
public class Map extends Mapper<Object, Text, LongWritable, Text> {
public void map(Object key, Text value, Context context)
throws IOException, InterruptedException
protected void setup(Context context) throws IOException,
InterruptedException { Configuration conf = context.getConfiguration(); System.out.println(conf.get("map.input.file")); }
}