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

Working with Pig and using Shell


In addition to the previously mentioned clients, some very useful clients which can be used in various scenarios are Pig and HBase shell.

Using Pig comes with a unique integration process, in which HbaseStorage is used to read and write data to HBase tables. But it does allow you to do it in a bulk loading fashion. If the data is already present in HBase, then the reads are much faster as compared to pulling it from the HDFS.

How to do it…

The process is as follows:

  1. You let Pig know the table, column families, individual columns, or even the entire column family.

  2. The column family may contain various sets of columns and their values, hence it's essential to cast it to their Pig map type.

  3. The load location string needs to be the name of the table that needs to be loaded.

  4. Then we have to specify the exact column name, which is needed to pull the data. When the entire column family needs to be extracted, then we provide the column family and an asterisk.

  5. In case you...