I'm looking for a way to do one of the following:
a) Know during the map() invocation how many maps there are left to process
b) Know during the map() invocation if this is the last map of the the batch
c) Define a cleanup routine to be called before the map environment is destroyed
Is there any way known to do this? Currently i'm attempting to "require 'java'" and inspect the environment from inside my map(), this process is somewhat tedious as you can imagine.
Any help would be greatly appreciated. Thanks. :)