Book Image

HBase Essentials

By : Nishant Garg
Book Image

HBase Essentials

By: Nishant Garg

Overview of this book

Table of Contents (14 chapters)

Preface

Apache HBase is an open source distributed, Big Data store that scales to billions of rows and columns. HBase sits on top of clusters of commodity machines.

This book is here to help you get familiar with HBase and use it to solve your challenges related to storing a large amount of data. It is aimed at getting you started with programming with HBase so that you will have a solid foundation to build on about the different types of advanced features and usages.

What this book covers

Chapter 1, Introducing HBase, introduces HBase to the developers and provides the steps required to set up the HBase cluster in the local and pseudo-distributed modes. It also explains briefly the basic building blocks of the HBase cluster and the commands used to play with HBase.

Chapter 2, Defining the Schema, this answers some basic questions such as how data modeling is approached and how tables are designed in the first half of the chapter. The next half provides the examples of CRUD operations in HBase using the Java-based developers API provided by HBase.

Chapter 3, Advanced Data Modeling, takes the concepts discussed in the previous chapter into more depth. It explains the role of different keys in HBase and later picks up advanced features such as table scan and filters in detail.

Chapter 4, The HBase Architecture, provides an insight into the HBase architecture. It covers how data is stored and replicated internally in HBase. It also discusses how to secure HBase access and explains HBase and MapReduce over Hadoop integration in detail.

Chapter 5, The HBase Advanced API, shares the advanced features such as counters, coprocessors, and their usage using the HBase developers' API. It also discusses the API available for the HBase administration.

Chapter 6, HBase Clients, discusses in detail various clients that are available for HBase. The HBase client list includes HBase shell, Kundera, REST clients, Thrift client, and Hadoop ecosystem clients.

Chapter 7, HBase Administration, focuses on HBase administration. It provides details about the HBase cluster management, monitoring, and performance tuning. In the end, it talks about cluster troubleshooting.

What you need for this book

The basic list of software required for this book is as follows:

  • CentOS 6.5 64 bit

  • Oracle JDK SE 7 (Java Development Kit Standard Edition)

  • HBase 0.96.2

  • Hadoop 2.2.0

  • ZooKeeper 3.4.5

Who this book is for

This book is for readers who want to know about Apache HBase at a hands-on level; the key audience is those with software development experience but no prior exposure to Apache HBase or similar technologies.

This book is also for enterprise application developers and Big Data enthusiasts who have worked with other NoSQL database systems and now want to explore Apache HBase as another futuristic scalable solution.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Data deletion in HBase can happen for a single row or in the form of a batch representing multiple rows using the following method of the HTable class."

A block of code is set as follows:

List<Delete> deletes = new ArrayList<Delete>();
Delete delete1 = new Delete(Bytes.toBytes("row-1"));
delete1.deleteColumn(Bytes.toBytes("cf1"), Bytes.toBytes("greet"));
deletes.add(delete1);

Any command-line input or output is written as follows:

[root@localhost hbase-0.98.7-hadoop2]# bin/hbase shell
hbase(main):001:0> help 'create'

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on return to see a listing of the available shell commands and their options."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.