O'Reilly logo

Getting Started with Hazelcast - Second Edition by Mat Johns

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

Putting theory into practice

In order to drill deep into the stored data, Hazelcast unsurprisingly provides us with an implementation of MapReduce, allowing us to perform analytical and aggregation queries directly within the cluster. Thus, we avoid the impractical need to load all of our data on a single node to gather the results.

As our jobs can be rather complex and may take time to run, we first need to obtain a JobTracker object to create job tasks, as well as track and monitor their execution across the cluster. In order to create a Job, we will need to feed data to it. As MapReduce works with data pairs, the KeyValueSource wrapper class is used to provide a common input format. We can either use one of the convenient helper methods that ...

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