What is the purpose of the org.apache.hadoop.mapreduce.Mapper.run() function in Hadoop? The setup() is called before calling the map() and the clean() is called after the map(). The documentation for the run() says
Expert users can override this method for more complete control over the execution of the Mapper.
I am looking for the practical purpose of this function.
The default
run()method simply takes each key / value pair supplied by the context and calls themap()method:If you wanted to do more than that … you’d need to override it. For example, the MultithreadedMapper class