I'm working on a project where I'm trying to generate unique sequential integer ids for the keys of a hadoop job. This must be generated in the record reader, before it is passed to the mapper. Does anyone know a simple way to do this? Thanks for your help.