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

Write Path


HBase is designed to optimize writes. This is achieved by splitting the load across all the Region Servers. The design is optimized to handle Region Server failure and data loss. HBase data is orchestrated very similarly to store map, such as sorted key space partitions located in different shards/regions.

HBase tables are managed by a series of servers, as follows:

  • One active master server

  • Multiple backup master servers (you can use one backup too)

  • Many Region Servers

When a Region Server receives a write request, it relays the call to the specific region. Each region stores sets of rows. Row data can be separated into multiple column families (we will discuss this in the chapter about schema design). The data of a particular column family is stored in HStore, which has Memstore and a set of HFiles. Memostore is kept in the Region Server main memory, during which the HFiles are written to HDFS.

Note

Note that you can plan to flush the changes in the form of batches by switching off...