O'Reilly logo

MongoDB Cookbook by Amol Nayak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing our first Hadoop MapReduce job

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.

Getting ready

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required