Softwr

Databases · head to head

Apache HBase vs CockroachDB

Apache HBase logo

Apache HBase

Databases

Open source distributed wide-column store modelled on Bigtable, running on Hadoop

From
Free
Free plan
Yes
CockroachDB logo

CockroachDB

Databases

The cloud-native distributed SQL database

From
Free
Free plan
Yes

The short version

  • CockroachDB is a cloud-native distributed SQL database.
  • Apache HBase is free; CockroachDB starts at $0.057/mo.
  • Only Apache HBase lists runs on Hadoop and HDFS; only CockroachDB lists distributed SQL.
  • Where Apache HBase falls short: not relational, so there are no built-in SQL joins.
  • Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).

How do Apache HBase and CockroachDB differ?

Apache HBase and CockroachDB differ on pricing model (Open-source against Freemium) and platforms (Web against AWS, GCP, Azure). Only the attributes on which Apache HBase and CockroachDB actually diverge.

Attributes where Apache HBase and CockroachDB differ
AttributeApache HBaseCockroachDB
Pricing modelOpen-sourceFreemium
PlatformsWebAWS, GCP, Azure

Identical on both: starting price (Free), free tier (Yes), category (Databases).

Not yet recorded: founded for Apache HBase.

Which features does each one have?

They share no listed features; 7 appear only for Apache HBase and 20 only for CockroachDB. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Apache HBase

  • Strictly consistent real-time reads and writes
  • Automatic sharding and failover
  • Runs on Hadoop and HDFS
  • Java client
  • REST and Thrift gateways
  • Server-side filters
  • Bloom filters

Only in CockroachDB

  • Distributed SQL
  • Automatic Sharding
  • Multi-region Replication
  • Geo-partitioning
  • ACID Transactions
  • Horizontal Scaling
  • Survivability
  • PostgreSQL Compatibility

What is each one used for?

Apache HBase is most often brought in for time-series and metrics storage; CockroachDB for distributed SQL database for scalable applications. The jobs each tool is most often brought in to do.

Apache HBase

  • Time-series and metrics storagenot CockroachDB
  • IoT telemetrynot CockroachDB
  • Message and audit logsnot CockroachDB
  • Genomics datanot CockroachDB
  • Ad tech personalisationnot CockroachDB

CockroachDB

  • Distributed SQL database for scalable applicationsnot Apache HBase
  • Multi-region deployment and failovernot Apache HBase

Where do Apache HBase and CockroachDB fall short?

Apache HBase's most cited limit: not relational, so there are no built-in SQL joins. CockroachDB's: basic and Standard tiers limited to AWS and GCP (select regions only). Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Apache HBase

  • Not relational, so there are no built-in SQL joins
  • Depends on Hadoop and HDFS, adding operational work
  • Self-hosted; cluster setup is covered only in the reference guide
  • Several release lines are documented in parallel

CockroachDB

  • Basic and Standard tiers limited to AWS and GCP (select regions only)
  • Azure support restricted to Advanced tier only
  • Basic tier limited to 50 million RUs and 10 GiB storage per month
  • Advanced tier starts at $0.60/hour for 4 vCPUs minimum
  • 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced

How much do Apache HBase and CockroachDB cost?

Apache HBase is free to use; CockroachDB has a free plan, with paid plans from $0.057/mo. Plan by plan below, from each vendor's own pricing page.

Apache HBase

Free

No published plan breakdown. See the Apache HBase review.

CockroachDB

Free
  • Standard$0.057/vcpu-hour
  • Mission Critical$0.162/vcpu-hour

Which should you pick?

Choose Apache HBase if

  • You need strictly consistent real-time reads and writes.
  • You want to start without paying.
  • You also want automatic sharding and failover.

Choose CockroachDB if

  • You need distributed sql.
  • You want to start without paying.
  • You work on AWS, GCP, Azure.
  • You also want automatic sharding.

Questions people ask

Is Apache HBase or CockroachDB better?
It depends on the job. Apache HBase fits time-series and metrics storage; CockroachDB fits distributed SQL database for scalable applications. Apache HBase starts at Free and CockroachDB at Free.
Which is cheaper, Apache HBase or CockroachDB?
Apache HBase starts at Free and CockroachDB at Free.
Does Apache HBase or CockroachDB run on more platforms?
Apache HBase runs on Web. CockroachDB runs on AWS, GCP, Azure.
Can I use Apache HBase for free?
Both have a free tier, so you can try either at no cost before committing.
What is Apache HBase best used for?
Apache HBase is most often used for time-series and metrics storage, iot telemetry, message and audit logs, genomics data. Of those, time-series and metrics storage and iot telemetry are not what CockroachDB is typically brought in for.
What can Apache HBase do that CockroachDB cannot?
Apache HBase covers Strictly consistent real-time reads and writes, Automatic sharding and failover, Runs on Hadoop and HDFS, Java client. CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning.

Answered from the vendors’ own pages

Apache HBase: What is HBase modelled on?

The site describes it as an open-source distributed big data store modelled after Google Bigtable. It provides random, real-time read and write access to very large datasets.

Source
CockroachDB: What does the free Basic tier include?

The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.

Source
Apache HBase: Does HBase need Hadoop?

It runs on Hadoop and HDFS, per the site. Cluster setup is covered in the Reference Guide.

Source
CockroachDB: How much do the paid tiers cost?

Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.

Source
Apache HBase: What clients does it support?

The site lists a Java client plus REST and Thrift gateways. Server-side filters and Bloom filters are also described.

Source
CockroachDB: What are the storage limits for each tier?

Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.

Source
CockroachDB: Can I get trial credits before paying?

Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.

Source
CockroachDB: Do legacy contracts have different pricing?

Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.

Source
Share

Related pages

Other head to heads