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. This is a Maven project; thus, Maven needs to be set up and installed. Refer to the Connecting to a single node from a Java client recipe in Chapter 1, Installing and Starting the MongoDB Server, where we gave the steps to set up Maven in Windows...