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

LZO compression


LZO compression can be split; the LZO block format allows us to decompress the block at a random offset of the file. As the compression has many small blocks of compressed data, it allows the MapReduce jobs to be split along the boundaries thus allowing parallel threads to work on it. Hence, we get incredible speed to write and read.

How to do it…

This is the library that is shipped with most of the Linux distribution. In case you don't have it, you can download it from http://www.oberhumer.com/opensource/lzo/.

Based on the Linux version, you have to download appropriately:

> port fetch lzo2 # If for some reason LZO2 is already installed, please uninstall first before doing this
> port edit lzo2 # A vim editor should open
// Add the following block of text in the file and save the file.
variant x86_64 description "Build the 64-bit." {
    configure.args-delete     --build=x86-apple-darwin ABI=standard
    configure.cflags-delete   -m32
    configure.cxxflags-delete -m32...