[ https://issues.apache.org/jira/browse/MAPREDUCE-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926229#action_12926229 ]
Amareshwari Sriramadasu commented on MAPREDUCE-2166: ---------------------------------------------------- The configuration property "map.input.file" would be needed to access the file name from streaming jobs. > "map.input.file" is not set > --------------------------- > > Key: MAPREDUCE-2166 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2166 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: task > 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.