Skip to Content
HBase: The Definitive Guide
book

HBase: The Definitive Guide

by Lars George
September 2011
Intermediate to advanced content levelIntermediate to advanced
552 pages
16h 31m
English
O'Reilly Media, Inc.
Content preview from HBase: The Definitive Guide

Chapter 9. Advanced Usage

This chapter goes deeper into the various design implications imposed by HBase’s storage architecture. It is important to have a good understanding of how to design tables, row keys, column names, and so on, to take full advantage of the architecture.

Key Design

HBase has two fundamental key structures: the row key and the column key. Both can be used to convey meaning, by either the data they store, or by exploiting their sorting order. In the following sections, we will use these keys to solve commonly found problems when designing storage solutions.

Concepts

The first concept to explain in more detail is the logical layout of a table, compared to on-disk storage. HBase’s main unit of separation within a table is the column family—not the actual columns as expected from a column-oriented database in their traditional sense. Figure 9-1 shows the fact that, although you store cells in a table format logically, in reality these rows are stored as linear sets of the actual cells, which in turn contain all the vital information inside them.

The top-left part of the figure shows the logical layout of your data—you have rows and columns. The columns are the typical HBase combination of a column family name and a column qualifier, forming the column key. The rows also have a row key so that you can address all columns in one logical row.

Rows stored as linear sets of actual cells, which contain all the vital information
Figure 9-1. Rows stored as linear ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hadoop: The Definitive Guide

Hadoop: The Definitive Guide

Tom White
Hbase Essentials

Hbase Essentials

Nishant Garg
HBase in Action

HBase in Action

Amandeep Khurana, Nick Dimiduk

Publisher Resources

ISBN: 9781449314682Errata Page