In this recipe, we will write our first MapReduce job using the Hadoop MapReduce API and run it using the
mongo-hadoop connector that gets the data from MongoDB. Refer to the MapReduce in Mongo using a Java client recipe in Chapter 3, Programming Language Drivers, to see how MapReduce is implemented using a Java client, how to create test data and problem statements.
Refer to the previous recipe to set up the
mongo-hadoop connector. The prerequisites of the Executing our first sample MapReduce job using the mongo-hadoop connector recipe (which is present in this chapter) and the MapReduce in Mongo using a Java client recipe in Chapter 3, Programming Language Drivers, are all we need for this recipe. ...