hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rares Vernica (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-5973) "map.input.file" is not set
Date Thu, 04 Jun 2009 14:57:07 GMT
"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.


Mime
View raw message