O'Reilly logo

MongoDB Cookbook - Second Edition by Amol Nayak, Cyrus Dasadia

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 getting the data from MongoDB. Refer to the Executing MapReduce in Mongo using a Java client recipe in Chapter 3, Programming Language Drivers to see how MapReduce is implemented using a Java client, test data creation, and problem statement.

Getting ready

Refer to the previous Executing our first sample MapReduce job using the mongo-hadoop connector recipe to set up the mongo-hadoop connector. The prerequisites of this recipe and the Executing MapReduce in Mongo using a Java client recipe from Chapter 3, Programming Language Drivers are all that we need for this recipe. This is a ...

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