Executing the MapReduce programming with an Hbase Table
In this recipe, we are going to see how to use Hbase data as input to the MapReduce program.
Getting ready
To perform this recipe, you should have a running Hadoop cluster as well as the latest version of Hbase installed on it. You will also need an IDE such as Eclipse.
How to do it
To get started, we first need to create a maven project, and add the following dependencies to it:
<dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>1.0.1.1</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-mapreduce-client-core</artifactId> <version>2.7.1</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> ...
Get Hadoop: Data Processing and Modelling now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.