Softwr

Databases · head to head

Apache HBase vs Google Cloud Spanner

Apache HBase logo

Apache HBase

Databases

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

From
Free
Free plan
Yes
Google Cloud Spanner logo

Google Cloud Spanner

Databases

Globally distributed relational database with strong consistency and up to 99.999% availability

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache HBase lists runs on Hadoop and HDFS; only Google Cloud Spanner lists strong global consistency.
  • Where Apache HBase falls short: not relational, so there are no built-in SQL joins.
  • Where Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.

How do Apache HBase and Google Cloud Spanner differ?

Apache HBase and Google Cloud Spanner differ on pricing model (Open-source against Usage-based). Only the attributes on which Apache HBase and Google Cloud Spanner actually diverge.

Attributes where Apache HBase and Google Cloud Spanner differ
AttributeApache HBaseGoogle Cloud Spanner
Pricing modelOpen-sourceUsage-based

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

Which features does each one have?

They share no listed features; 7 appear only for Apache HBase and 9 only for Google Cloud Spanner. 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 Google Cloud Spanner

  • Strong global consistency
  • Automatic sharding
  • Single, dual and multi-region configurations
  • Spanner Graph
  • Vector and full-text search
  • Columnar engine for analytics
  • BigQuery federated queries
  • Spanner Omni

What is each one used for?

Apache HBase is most often brought in for time-series and metrics storage; Google Cloud Spanner for global transactional systems. The jobs each tool is most often brought in to do.

Apache HBase

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

Google Cloud Spanner

  • Global transactional systemsnot Apache HBase
  • Mission-critical apps needing 99.999% availabilitynot Apache HBase
  • Applications needing relational plus graph and vectornot Apache HBase
  • Real-time analytics on operational datanot Apache HBase
  • Scaling beyond a single database servernot Apache HBase

Where do Apache HBase and Google Cloud Spanner fall short?

Apache HBase's most cited limit: not relational, so there are no built-in SQL joins. Google Cloud Spanner's: pricing has compute, storage, replication and network components. 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

Google Cloud Spanner

  • Pricing has compute, storage, replication and network components
  • Cost is high for small or single-region workloads
  • Tied to Google Cloud outside the Omni option
  • Schema and query patterns differ from standard PostgreSQL deployments

How much do Apache HBase and Google Cloud Spanner cost?

Apache HBase is free to use; Google Cloud Spanner is free to use. Plan by plan below, from each vendor's own pricing page.

Apache HBase

Free

No published plan breakdown. See the Apache HBase review.

Google Cloud Spanner

Free

No published plan breakdown. See the Google Cloud Spanner review.

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 Google Cloud Spanner if

  • You need strong global consistency.
  • You want to start without paying.
  • You also want automatic sharding.

Questions people ask

Is Apache HBase or Google Cloud Spanner better?
It depends on the job. Apache HBase fits time-series and metrics storage; Google Cloud Spanner fits global transactional systems. Apache HBase starts at Free and Google Cloud Spanner at Free.
Which is cheaper, Apache HBase or Google Cloud Spanner?
Apache HBase starts at Free and Google Cloud Spanner at Free.
Does Apache HBase or Google Cloud Spanner run on more platforms?
Both run on Web, so platform support will not decide this one for you.
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 Google Cloud Spanner is typically brought in for.
What can Apache HBase do that Google Cloud Spanner cannot?
Apache HBase covers Strictly consistent real-time reads and writes, Automatic sharding and failover, Runs on Hadoop and HDFS, Java client. Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph.

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
Google Cloud Spanner: Is there a free trial?

Yes, a free trial instance lasts 90 days with up to 10 GiB of data.

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
Google Cloud Spanner: What availability does Spanner offer?

Up to 99.999% availability, depending on configuration.

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
Google Cloud Spanner: How is Spanner billed?

By hourly compute by edition, plus storage and replication, with committed use discounts of one and three years.

Source
Google Cloud Spanner: Can Spanner run outside Google Cloud?

Spanner Omni is a downloadable version for on-premises, other clouds or a laptop.

Source
Share

Related pages

Other head to heads