On May 8, 2008, at 8:16 PM, Derek Shaw wrote:

Is it possible for the record reader to get a copy of the job configuration or is it otherwise possible to send configuration values to the record reader?


Yes. Typically InputFormat.getRecordReader instantiates the RecordReader; and that function is passed the JobConf. So you could pass it down from there-on.

Take a look at SequenceFileRecordReader.java or LineRecordReader.java in trunk/src/java/org/apache/hadoop/mapred for an example.

Arun

Reply via email to