Hey.

I've been trying to figure out a nice and clean way of getting
the key class of the input values in my mapper's configuration method.

Since the JobConf.getInputKeyClass() method is deprecated I don't want to use that.

The deprecation message says to use the RecordReader's method called createKey(). However that one is not accessible from my mapper class.

What's the recommended way of doing this?

The only way I can think of is to specify this in a separate property in JobConf but that feels redundant. Or to do the setup in the actual map method, not very nice.


/Johan

Reply via email to