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

Snappy


Snappy is a library that uses very effective algorithms for compression and decompression of data. However, the goal is not to maximize compression or compatibility with other compression libraries but to focus on speed and reusable compression. HBase supports different compression mechanisms such as lzo, gzip, or snappy. Gzip comes built in with HBase while lzo/snappy compression needs to be configured separately. When creating a table, you can specify the compression/compression library; HFiles are compressed when written to disk if compression is used.

How to do it…

  1. Let's log in to our HBase setup.

  2. Once you log in, check the file on this location:

    /opt/HbaseB/ hbase-0.98.5-hadoop2/snappy-1.0.5/libs/snappy-java-1.0.4.1.jar → this has a JNL interface to the libsnappy.so.1.x.x which is a native linux-amd64-64 bit lib. 
    
  3. Once you have verified the path and the JAR file, let's do a quick test to make sure the library is performing as expected:

    $ hbase org.apache.hadoop.hbase.util.CompressionTest...