Operational Database: HBase, Phoenix and Kudu for real-time applications
How Apache HBase stores and serves billions of rows with millisecond lookups, why the row key decides everything, what Apache Phoenix adds, when Kudu is the better store, how replication and snapshots protect the data, and what to decide before building on it.
A core banking system holds every account, but it is not built to answer "show me the last five years of this customer's transactions" while the customer is on the phone. A fraud model needs the last fifty events for a card in under ten milliseconds, for every card, all day. A sensor network arrives at millions of rows a minute and has to be queryable the moment it lands. Relational databases on one server stop at some number of rows and some rate of writes. This is the gap the operational database in Cloudera fills.
Apache HBase is the store Cloudera ships for that job: a distributed, wide-column database that keeps petabytes of sparse data across many servers and serves single-row reads and writes in milliseconds. Apache Phoenix puts SQL and JDBC on top of it, and Apache Kudu is the companion store for data that changes constantly but is read in bulk by analytics. All three run inside the Cloudera Base on premises cluster, managed by Cloudera Manager, with the same Kerberos, Ranger and Atlas as everything else.
This article explains how HBase is built, how to think about row keys, what Phoenix and Kudu add, what "Cloudera Operational Database" means on premises as of October 2026, how the data is replicated and protected, where HBase stands next to PostgreSQL, Redis and Data Grid, and what to decide before you size a cluster.
What HBase is
HBase is the open-source implementation of the design Google described for Bigtable. A table is a sorted map: every row has a binary row key, rows are kept in key order, and each row holds any number of columns grouped into a few column families declared when the table is created. A column that a row does not use costs nothing, so a table with ten thousand possible columns and rows that each use twenty of them is normal. Every cell is versioned by timestamp, and the family decides how many versions to keep.
Three properties follow from that model and explain most of what HBase is good and bad at:
- Strong consistency per row. A write to one row is atomic, and a read after it sees it. There are no cross-row transactions in HBase itself; Phoenix adds them, at a cost.
- Sorted keys make ranges cheap. Reading all rows that share a prefix is a sequential scan of one region, which is why per-customer histories fit so well, and why a badly chosen key puts all the writes on one server.
- Storage is someone else's job. HBase keeps its files on HDFS, or on Apache Ozone through its Hadoop-compatible interface, which replicates the bytes.
Cloudera Runtime 7.3.2 ships HBase 2.6.3, up from 2.4.17 in the previous line, on JDK 17 only, with IPv6 and dual-stack networking. Service pack 1 added TLS 1.3 across the Master, RegionServer, REST and Thrift endpoints.
Anatomy: how a write and a read travel
An HBase cluster has one active HMaster with standbys, and a fleet of RegionServers, normally one per worker node beside the HDFS or Ozone DataNode that holds their files. ZooKeeper tracks which Master is active and which servers are alive. The Master is not in the data path: it assigns and balances regions and runs schema changes, and the cluster keeps serving if it is down.
A table is split into regions, each a contiguous range of row keys. A region lives on exactly one RegionServer at a time, and a server hosts many regions from many tables. When a region grows past a configured size, typically several gigabytes, it splits in two and the halves may move elsewhere. That is how HBase scales: add servers, and the balancer spreads regions across them.
Inside a RegionServer, each region keeps one MemStore per column family and the HFiles that family has already written. A write goes first to the write-ahead log (WAL), a sequential file on the storage layer, so that a crash loses nothing, and then into the MemStore, a sorted in-memory structure. When a MemStore reaches its flush size, by default 128 MB, it is written out as a new, immutable, sorted HFile. Reads consult the MemStore and every HFile of the family, which is why compactions run in the background: minor compactions merge a handful of small HFiles, and major compactions rewrite a whole family, dropping deleted and expired cells on the way. A major compaction is heavy and is normally scheduled for a quiet window.
Reads are served from memory wherever possible. The block cache holds recently read HFile blocks in the Java heap. The bucket cache extends it off heap, or onto local SSD, and on a server with 256 GB of RAM it is the setting that turns a disk-bound workload into a memory-bound one. Bloom filters on each HFile let a read skip files that cannot contain the key. A single-row lookup on a warm cache takes a millisecond or two; a miss that touches disk takes tens. Optional REST and Thrift server roles give access to clients that cannot use the Java API.
The row key decides everything
In a relational database the schema is the design; in HBase the row key is. Rows are stored and served in key order, and the key is the only index HBase has. Three consequences follow.
Hotspotting. If keys increase monotonically, such as a timestamp or an auto-increment number, every new write lands at the end of the key space, which is one region on one server, and the other thirty servers sit idle. The standard cure is salting: prefix the key with a small hash of its contents so writes spread across a fixed number of buckets, and accept that a range scan is now issued once per bucket.
Locality. Everything you want to read together should sort together. A customer's transaction history is keyed by customerId + reversedTimestamp, so the newest events come first and "the last fifty" is one short scan. A device time series is keyed by deviceId + time bucket. Designing the key means writing down the queries first and the table second, the opposite of relational practice.
Width and families. Column families are physical: each has its own MemStore, files and cache settings, so families separate data with different access patterns, such as a small hot profile family and a large cold history family. Two or three per table is the practical limit. A bank's customer 360 table, for example, keys rows by a hashed customer number, keeps identity and limits in one family, and keeps interactions in a second family with time-to-live set to the retention period the regulator requires, so expiry is a compaction, not a batch job.
Phoenix: SQL on top of HBase
Writing against the HBase Java API means building byte-array keys by hand, and the people who need the data mostly speak SQL. Apache Phoenix is the relational layer: it maps tables, typed columns and composite primary keys onto HBase rows, compiles SQL into HBase scans that run in parallel across regions, and exposes it all through a JDBC driver. A WHERE on the leading key columns becomes a bounded scan; aggregations and filters are pushed into RegionServer coprocessors so the data is reduced where it sits.
Phoenix adds what HBase lacks: secondary indexes, kept as separate HBase tables that Phoenix maintains, so a lookup by account number on a table keyed by customer does not need a full scan; salted tables declared in the DDL, which applies the hotspot cure automatically; transactions across rows where an application needs them; and the Phoenix Query Server, a thin HTTP server that lets Python, .NET and other non-JVM clients connect through a lightweight driver (TLS 1.3 for it arrived in service pack 1 of 7.3.2). The DDL reads like any database, which is the point:
CREATE TABLE card_events (
card_id CHAR(16) NOT NULL,
event_ts BIGINT NOT NULL,
amount DECIMAL(14,2),
merchant VARCHAR,
CONSTRAINT pk PRIMARY KEY (card_id, event_ts DESC)
) SALT_BUCKETS = 32, TTL = 157680000;
That one statement declares the composite key (card first, newest event first), spreads writes across 32 buckets and expires rows after five years. A fraud service then issues a SELECT ... WHERE card_id = ? LIMIT 50 and gets the latest fifty events from one region in a few milliseconds.
Cloudera Runtime 7.3.2 ships Phoenix 5.2.1, up from 5.1.3, on JDK 17, with IPv6 and a guard that blocks automatic metadata upgrades during a cluster upgrade. Cloudera's 7.3.2 release summary also lists support for Phoenix high-availability configurations. The Omid transaction service is deprecated in this release, so new designs should not depend on it.
What "Cloudera Operational Database" means on premises
In Cloudera's public cloud the Operational Database is a separate, auto-scaling service with its own console. On premises there is no such service as of October 2026. Cloudera Operational Database on premises is the HBase, Phoenix and Kudu services inside the Cloudera Base cluster, installed, configured and monitored by Cloudera Manager, secured by Kerberos and Ranger, catalogued in Atlas. The containerised Data Services do not run HBase; they connect to it. Cloudera Data Engineering on premises added connectors to HBase and Phoenix in 1.5.5 service pack 3, and Flink and Spark jobs on Base have always been able to read and write HBase tables.
This matters for planning: HBase capacity is Base cluster capacity, bought as worker nodes with local disks, not as Kubernetes nodes, and the operational database is one of the reasons the Base cluster stays substantial.
| Component | Version in Runtime 7.3.2 | Note |
|---|---|---|
| Apache HBase | 2.6.3 | JDK 17 only; TLS 1.3 from service pack 1 |
| Apache Phoenix | 5.2.1 | Query Server, secondary indexes, HA configurations |
| Apache Kudu | Runtime-bundled | Array type, Flink-based replication, Prometheus endpoints from service pack 1 |
| Omid | Deprecated | Cross-row transactions for Phoenix; to be removed |
| Storage | HDFS or Apache Ozone | Ozone through its Hadoop-compatible interface; see the Ozone article |
Kudu: the other operational store
HBase is built for random access to individual rows; scanning millions of rows to sum a column is slow because the data is stored row by row across many HFiles. Apache Kudu is Cloudera's store for data that is both updated constantly and scanned heavily: columnar, with a relational schema and primary keys, fast inserts, updates and deletes, and scans that Impala runs at warehouse speed. It keeps its own replicated storage on local disks, with a Raft consensus group per tablet.
| Question | HBase | Kudu |
|---|---|---|
| Typical read | One row or a short range by key, in milliseconds | Scan millions of rows for an aggregate, in seconds |
| Schema | Column families, any columns, any bytes | Fixed typed columns, primary key, now one-dimensional arrays |
| Writes | Very high rates, append-friendly | High rates with in-place updates |
| Query engines | Phoenix SQL, HBase API, Spark, Flink | Impala SQL, Spark, Flink |
| Where it shines | Customer 360, event history, feature lookups | Changing dimensions, late-arriving facts, dashboards over live data |
Many estates run both, fed from the same Kafka topics. Kudu in 7.3.2 adds an Array type, a Flink-based replication job that keeps a destination table in step by shipping only changed rows, JDK 17 and IPv6, and from service pack 1, Prometheus metric endpoints on the Master and Tablet Servers.
Use cases in a bank or a government body
The patterns repeat across institutions, and HBase fits them because each is a key lookup or a short scan at high volume:
- Customer 360. One row per customer with identity, limits and years of interactions, served to branch staff, the call centre and the mobile app in milliseconds without touching the core banking system. Spark and Flink jobs write the row; the app only reads.
- Transaction history. Billions of rows keyed by account and time, with time-to-live matching the retention rules.
- Fraud and risk features. Per-card counters updated by a Flink job as events arrive and read by the scoring model on every authorisation, and reachable from an analyst's SQL client through Phoenix.
- Time series from devices. Meters, sensors, vehicles and network elements keyed by device and time bucket. Kudu takes the aggregate views; HBase takes the raw history.
- Citizen and land records. Tens of millions of records with a stable identifier, many sparse attributes and strict audit.
What HBase is not for: a system of record that needs multi-row ACID and joins, reporting over the whole dataset (that is the Data Warehouse on Iceberg), or small datasets that fit on one PostgreSQL server.
Replication, snapshots and disaster recovery
HBase has its own replication: a source cluster ships its WAL entries asynchronously to one or more peer clusters, per column family, and the peer applies them in order. The lag is normally seconds, and the topology can be active-standby, active-active or hub-and-spoke. Cloudera Manager configures the peers, Kerberos cross-realm trust is needed when the clusters are in different realms, and bulk-loaded HFiles are only replicated if bulk-load replication is switched on, which is easy to forget.
Replication Manager in Cloudera Manager adds the scheduled layer: HBase snapshot policies take point-in-time snapshots of tables on a schedule and restore them, and Ranger replication policies move the HBase access policies and roles to the other cluster so the replica is usable, not just present. For HBase table data itself, the mechanism on premises is HBase replication, not a Replication Manager policy; the "replication policy with initial snapshot" workflow that Cloudera's blogs describe belongs to the cloud edition.
A snapshot in HBase is a set of file references, not a copy, so it is instant and cheap. Exporting it to another cluster or to object storage is the backup that survives losing the whole cluster. Most sites settle on replication for recovery time, daily snapshots exported off-cluster for recovery point and for the "someone dropped the table" case, and a regular restore test, which the Observability and DR article covers.
Where it stands next to PostgreSQL, Redis and Data Grid
Most organisations that need HBase also run smaller operational stores on OpenShift beside it. Each answers a different question.
| Store | Best at | Not built for | Typical size |
|---|---|---|---|
| HBase with Phoenix | Billions of rows, millisecond key lookups, high write rates, long retention | Joins, multi-row transactions, ad hoc analytics | Tens of terabytes to petabytes |
| Crunchy Postgres on OpenShift | Transactions, joins, constraints, the system of record for an application | Petabyte scale, hundreds of thousands of writes a second | Gigabytes to a few terabytes |
| Redis | Sub-millisecond caching, counters, sessions, queues | Durable storage of large histories | Memory-sized |
| Red Hat Data Grid | In-memory data grid for Java applications, session externalisation, cross-site replication | Analytical scans, cold data | Memory-sized, clustered |
| Kudu | Live tables that analytics scans while they change | Single-row latency as the main requirement | Terabytes |
A common pattern in a bank is PostgreSQL as the application database, Redis in front of the APIs, and HBase as the history and feature store, all fed from the topics the Kafka series covers.
Sizing and planning
HBase is sized by RegionServers, and a RegionServer is sized by memory first. The JVM heap is normally kept between 16 and 32 GB to keep garbage collection pauses short; the MemStores take a fixed share of it, the on-heap block cache another, and the off-heap bucket cache takes whatever memory remains. Each RegionServer is comfortable with a few hundred regions; thousands per server means more flush pressure and slower recovery after a failure, so region size and pre-splitting are set with the final row count in mind.
Disks are the second constraint. Three-way replication means a 100 TB table needs 300 TB of raw disk, or less with erasure coding on Ozone for cold data. SSD for WALs helps write latency; SSD for the bucket cache helps read latency when the working set is larger than memory. Three or five ZooKeeper nodes, two HMasters and at least five RegionServers are a sensible minimum for production. Phoenix adds no servers except the optional Query Server roles behind a load balancer. Kudu wants its own disks and memory, and its own three Masters.
What to decide
- HBase, Kudu, both, or neither. Write down the ten queries that matter. Key lookups and short scans mean HBase. Aggregates over live data mean Kudu. Joins over a few hundred gigabytes mean PostgreSQL, which will be cheaper and simpler.
- The row keys. Decide them with the application teams before the first table exists, because changing a key means rewriting the table.
- Phoenix or the native API. Phoenix for anything people will query or reach from non-Java code; the native API for the one or two services where every microsecond counts.
- Storage layer. HDFS is the long-standing default; Ozone is where Cloudera's investment is going, so a new cluster in 2026 should at least plan for it.
- Retention and residency. Set time-to-live per family to match what the regulator allows. Both clusters and the exported snapshots stay inside the institution's own data centres in the country, which is normally why an on-premises platform was chosen.
- Disaster recovery topology. Active-standby replication to a second site with daily exported snapshots covers most banks; active-active needs application design that tolerates conflicting writes.
- Operations. Compaction windows, region balancing and the bucket cache need an administrator who reads the RegionServer metrics; someone has to look.
Further reading
- What's new in HBase, Cloudera Runtime 7.3.2
- What's new in Phoenix, Cloudera Runtime 7.3.2
- What's new in Kudu, Cloudera Runtime 7.3.2
- Cloudera Base on premises 7.3.2 release summary
- HBase replication on Cloudera Base
- Enable HBase high availability using Cloudera Manager
- Replication Manager in Cloudera Base on premises
In this series
- Previous: Streaming, the Kafka and Flink pipelines that feed these tables.
- Next: Cloudera AI, where the feature stores built here are consumed.
- Related: Architecture, Ozone object store, SDX and governance, Observability and DR.
- Elsewhere: the Kafka, Crunchy Postgres, Redis and Red Hat Data Grid series, and our databases service page.