hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sriramadasu (JIRA)" <j...@apache.org>
Subject [jira] Moved: (MAPREDUCE-2166) "map.input.file" is not set
Date Fri, 29 Oct 2010 10:28:24 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amareshwari Sriramadasu moved HADOOP-5973 to MAPREDUCE-2166:
------------------------------------------------------------

          Component/s:     (was: conf)
                       task
    Affects Version/s:     (was: 0.20.0)
                  Key: MAPREDUCE-2166  (was: HADOOP-5973)
              Project: Hadoop Map/Reduce  (was: Hadoop Common)

> "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.


Mime
View raw message