Skip to content
Tutorials Center
My learning

Topics

Apache HBase Tutorial

Learn Apache HBase step by step: 36 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Apache HBase? Learn what Apache HBase is, the problems it solves, how it stores huge sorted tables across many servers, and when it is the right database to choose.
  2. 2 HBase vs RDBMS and Other NoSQL Stores Compare Apache HBase with relational databases, Cassandra, MongoDB and Redis, and learn the questions that decide which database fits your workload.
  3. 3 Installing HBase and Standalone Mode Install Apache HBase on Linux, macOS or Windows with WSL, understand standalone, pseudo-distributed and fully distributed modes, and check that it runs.
  4. 4 HBase and the Hadoop Ecosystem See how HBase uses HDFS for storage and ZooKeeper for coordination, how it relates to MapReduce, Spark, Hive and Phoenix, and what each component is for.

Architecture and Data Model

  1. 5 Tables, Rows, Column Families and Qualifiers Understand the HBase data model in depth: namespaces, tables, row keys, column families, qualifiers and the sorted, sparse layout that makes scans fast.
  2. 6 Cells, Timestamps and Versions Learn how HBase cells keep several timestamped versions, how MAX_VERSIONS and TTL work, how deletes use tombstones, and how time-based reads behave.
  3. 7 The Master and RegionServers Learn the HBase architecture: what the HMaster and the RegionServers do, how clients talk to them directly, how failover works and which services run where.
  4. 8 Regions, Splits and the Meta Table Understand how HBase divides tables into regions by row-key range, how automatic splits, pre-splitting and merging work, and how hbase:meta finds a region.
  5. 9 The Write Path: WAL, MemStore and HFiles Follow a single HBase write from the client to disk: the WAL, the MemStore, flushes into HFiles, minor and major compactions, and why writes stay fast.
  6. 10 The Read Path: BlockCache and Bloom Filters See how an HBase read merges the MemStore and several HFiles, how the BlockCache and bloom filters skip disk work, and how to tune reads for your workload.

Shell and Basic Operations

  1. 11 Shell: Creating and Altering Tables Use the HBase shell to create tables with column families and options, list and describe them, alter their schema, disable and enable them, and drop them safely.
  2. 12 Shell: Put, Get and Delete Write, read and remove data with the HBase shell: put with timestamps, get with columns, versions and time ranges, delete and deleteall, counters with incr, and append.
  3. 13 Shell: Scan and Count Learn the HBase scan command: row ranges, column selection, limits, reversed scans, prefix and value filters, raw scans for tombstones, and how to count rows efficiently.
  4. 14 Shell: Namespaces, TTL and Snapshots Organize HBase tables with namespaces, expire old data with TTL, and take, clone, restore and export snapshots with the shell to back up and copy tables safely.

Java API

  1. 15 Java Client: Connections and Tables Set up the HBase Java client with Maven, create one shared Connection, get lightweight Table objects, convert values with Bytes, and follow resource and threading rules.
  2. 16 Java Client: Put, Get and Delete Write, read and delete HBase rows with the Java client: Put, Get with versions and time ranges, Result handling, Delete types, atomic increments and conditional updates.
  3. 17 Java Client: Scans, Batches and BufferedMutator Scan HBase tables from Java with ranges, caching and filters, close ResultScanners correctly, send mixed batches with Table.batch, and buffer heavy writes with BufferedMutator.
  4. 18 Java Client: The Admin API Manage HBase from Java with the Admin API: build table and column family descriptors, create pre-split tables, alter schemas, trigger flushes and compactions, and take snapshots.

Schema Design

  1. 19 Row Key Design Learn how to design HBase row keys: byte ordering, fixed-width numbers, composite keys, reversed timestamps and key length, with runnable Java stand-ins.
  2. 20 Hotspotting, Salting and Hashing Understand why sequential HBase row keys overload one region server, and how salting, hashing, reversing and pre-splitting spread writes evenly.
  3. 21 Column Families and Versions Design HBase column families, qualifiers, cell versions and TTL: how many families to use, what versions cost, and how timestamps drive reads.
  4. 22 Schema Patterns: Time Series and Wide Tables Common HBase schema patterns: tall versus wide tables, time-series buckets, secondary index tables, denormalization and counters, with runnable Java stand-ins.

Filters and Coprocessors

  1. 23 Filters and Scan Basics Learn how HBase filters work on the server side: row, column and value filters, scan ranges, paging and what filters cannot do, with Java stand-ins.
  2. 24 Filter Lists and Custom Filters Combine HBase filters with FilterList (MUST_PASS_ALL, MUST_PASS_ONE), understand ReturnCode ordering and deploy a custom filter, using Java stand-ins you can run.
  3. 25 Coprocessors: Observers Understand HBase observer coprocessors: RegionObserver, MasterObserver and WALObserver hooks, what they are good for, the risks, and a runnable Java hook model.
  4. 26 Endpoint Coprocessors and Aggregation Learn how HBase endpoint coprocessors run per-region computations and how clients combine the partial results, including AggregationClient, with a runnable Java model.

Administration and Tuning

  1. 27 Compactions and Flushes How HBase turns writes into HFiles: MemStore flushes, minor and major compactions, write amplification and the settings to tune, with a runnable LSM simulation.
  2. 28 Region Splitting and Balancing How HBase splits regions as tables grow, split policies, manual and pre-splitting, merging, the balancer and region server assignment, with a runnable Java model.
  3. 29 MemStore, Block Cache and Bloom Filters Tune the HBase read path: BlockCache and BucketCache, MemStore sizing, Bloom filter types, block size and compression, with runnable LRU and Bloom filter models.
  4. 30 Backup, Snapshots and Replication Protect HBase data with snapshots, ExportSnapshot, CopyTable, replication and incremental backup, and understand how cheap snapshots work with a runnable model.

Integration and Patterns

  1. 31 HBase with MapReduce, Spark and Hive Run analytics over HBase: TableMapper and TableReducer, Spark connectors, snapshot scans and Hive external tables, with runnable Java models of the data flow.
  2. 32 Thrift, REST and Apache Phoenix Access HBase from any language with the REST and Thrift gateways, or use SQL through Apache Phoenix: endpoints, encoding, secondary indexes and trade-offs.
  3. 33 Bulk Loading HFiles Load huge datasets into HBase fast by writing HFiles directly: the bulk load flow, ImportTsv, HFileOutputFormat2, region boundaries and pitfalls, with a Java model.

Projects and Practice

  1. 34 Project: A Messaging Inbox Design an HBase schema for a chat and inbox system: row keys, reversed timestamps, unread counters, paging and an index table, built and tested on a Java stand-in.
  2. 35 Project: A Time-Series Metrics Store Build a metrics store on an HBase schema: hourly row buckets, rollup tables with TTL, tag encoding, range queries and downsampling, tested on a Java stand-in.
  3. 36 HBase Practice and Interview Questions Practice HBase design with exercises on row keys, hotspots and versions, plus common interview questions with short answers and runnable Java checkers.