Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2166

"map.input.file" is not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • task
    • 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

      { 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")); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            rvernica Rares Vernica
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: