You can deploy the optional Apache HBase component on Managed Service for Apache Spark clusters created with image version [1.5](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/dataproc-release-1.5) or [2.0](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/dataproc-release-2.0). The HBase component is deprecated, unsupported, and unavailable starting with version 2.1. Because Managed Service for Apache Spark clusters are ephemeral, avoid deploying co-located HBase on cluster nodes.

Instead, [Bigtable](https://docs.cloud.google.com/bigtable/docs/overview.md.txt) lets you replace self-managed HBase by providing an open HBase client API and workload portability. You can migrate HBase database tables to Bigtable for persistent storage while continuing to run Spark applications on Managed Service for Apache Spark. To set up Bigtable and migrate data from Managed Service for Apache Spark HBase deployments, follow the steps in this document.

> [!WARNING]
> **Deprecated:** Starting with Managed Service for Apache Spark [version 2.1](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/dataproc-release-2.1), you can no longer use the optional HBase component. Managed Service for Apache Spark [version 1.5](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/dataproc-release-1.5) and Managed Service for Apache Spark [version 2.0](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/dataproc-release-2.0) offer a Beta version of HBase with no support. However, due to the ephemeral nature of Managed Service for Apache Spark clusters, using HBase is not recommended.

## Get started with Bigtable

Cloud Bigtable is a highly scalable and performant NoSQL platform that provides
[Apache HBase API client compatibility](https://docs.cloud.google.com/bigtable/docs/hbase-bigtable.md.txt)
and portability for HBase workloads. The client is compatible with HBase API
versions 1.x and 2.x and may be included with the existing application to read
and write to Bigtable. Existing HBase applications may add the Bigtable HBase
client library to read and write data stored in Bigtable.

See
[Bigtable and the HBase API](https://docs.cloud.google.com/bigtable/docs/hbase-bigtable.md.txt)
for more information on configuring your HBase application with Bigtable.

## Create a Bigtable cluster

You can get started using Bigtable by creating a cluster and tables for
storing data that was previously stored in HBase. Follow the steps in the Bigtable documentation for
[creating an instance](https://docs.cloud.google.com/bigtable/docs/creating-instance.md.txt#creating-instance),
a cluster, and
[tables](https://docs.cloud.google.com/bigtable/docs/managing-tables.md.txt) with
the same schema as the HBase tables. For automated creation of tables from HBase
table DDLs, refer to the
[schema translator tool](https://docs.cloud.google.com/bigtable/docs/migrate-hbase-on-google-cloud-to-bigtable#create-destination-table).

Open the Bigtable instance in Google Cloud console to view the table and
server-side monitoring charts, including rows per second, latency, and throughput, to manage
the newly provisioned table. For additional information, see
[Monitoring](https://docs.cloud.google.com/bigtable/docs/monitoring-instance.md.txt).
![](https://docs.cloud.google.com/static/managed-spark/images/bigtable-ui.png)

## Migrate data from Managed Service for Apache Spark to Bigtable

After you create the tables in Bigtable, you can import and validate
your data by following the guidance at
[Migrate data from HBase to Bigtable offline](https://docs.cloud.google.com/bigtable/docs/migrate-hbase-data-to-bigtable.md.txt).
After you migrate the data, you can update applications to send reads and writes
to Bigtable.

## What's next

- See [Wordcount Spark examples](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/bigtable/spark) for running Spark with the Bigtable.
- Review online migration options with [live replication from HBase to Bigtable](https://docs.cloud.google.com/bigtable/docs/hbase-replication.md.txt).
- Watch [How Box modernized their NoSQL databases](https://www.youtube.com/watch?v=DteQ09WFhaU) to understand other benefits.