Book Image

HBase High Performance Cookbook

By : Ruchir Choudhry
Book Image

HBase High Performance Cookbook

By: Ruchir Choudhry

Overview of this book

Apache HBase is a non-relational NoSQL database management system that runs on top of HDFS. It is an open source, disturbed, versioned, column-oriented store and is written in Java to provide random real-time access to big Data. We’ll start off by ensuring you have a solid understanding the basics of HBase, followed by giving you a thorough explanation of architecting a HBase cluster as per our project specifications. Next, we will explore the scalable structure of tables and we will be able to communicate with the HBase client. After this, we’ll show you the intricacies of MapReduce and the art of performance tuning with HBase. Following this, we’ll explain the concepts pertaining to scaling with HBase. Finally, you will get an understanding of how to integrate HBase with other tools such as ElasticSearch. By the end of this book, you will have learned enough to exploit HBase for boost system performance.
Table of Contents (19 chapters)
HBase High Performance Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
7
Large-Scale MapReduce
Index

HBase REST and Java Client


HBase provides various communication mechanisms for communicating with the datastore, and it's also designed to solve different types of scenario that can occur.

Using the REST server, we are channeling all the requests to HTablePool, which provides efficiency in the following ways:

  • Efficient connection pool management.

  • If there is a case where an object is short-lived, it goes through the entire lifecycle of connection creation, such as connection preparation, preparing metadata, and then the actual transaction. This is totally avoided as the connection object is readily available.

  • Use of caching of the RegionServer information provides significant benefits.

  • In case of less but large size requests, REST is better:

How to do it…

Let's connect to the cluster that we created earlier and make sure that all the components are working.

The structure of the call will be as follows:

Let's log in to the HBase Master by executing the following command:

  1. Before we start the rest services...