"map.input.file" is not set
---------------------------
Key: HADOOP-5973
URL: https://issues.apache.org/jira/browse/HADOOP-5973
Project: Hadoop Core
Issue Type: Bug
Components: conf
Affects Versions: 0.20.0
Reporter: Rares Vernica
Priority: Minor
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 {
Configuration conf = context.getConfiguration();
System.out.println(conf.get("map.input.file"));
}
protected void setup(Context context) throws IOException,
InterruptedException {
Configuration conf = context.getConfiguration();
System.out.println(conf.get("map.input.file"));
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.