Connecting to Cloud Bigtable with HBase Shell

30 minutes
  • 6 Learning Objectives

About this Hands-on Lab

Cloud Bigtable is a fully managed NoSQL database service designed to handle massive amounts of information. One of Cloud Bigtable’s true strengths is its adherence to support for the open-source industry standard HBase API. In this hands-on lab, you’ll configure database instances and clusters for Cloud Bigtable in the console. Then you’ll use HBase shell commands to create a schema and populate the table with data.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable API
  1. From the main navigation menu, choose APIs & Services. Then select Library.
  2. In the search field, enter "Bigtable".
  3. Select the Cloud Bigtable Table Admin API card.
  4. Click Enable.
Create Bigtable Instance
  1. From the main navigation, choose Bigtable in the Storage section.
  2. Choose Create instance.
  3. Set the following fields:
    • Name: "la-data-hbase"
    • Instance type: Development
    • Storage type: HDD
    • Cluster Region: us-east1
    • Cluster Zone: us-east-1d
  4. Click Done and then Create.
Install and Start HBase Shell
  1. Activate the Cloud Shell by clicking its icon in the top row.

  2. In the Cloud Shell, clone an existing repository from GitHub for Google Cloud Platform from

  3. Set your Cloud Shell instance to use Java version 8 for compatibility with this version of HBase.

  4. Start the HBase shell.

Create Data Table and Column Family
  1. Create a Bigtable table "la-table" with a column family "offerings".
  2. Review the results.
Define Table Structure and Add Data
  1. Create the table qualifier and first cell of the Bigtable table.
  2. View the data in the table.
  3. Add a second cell to the same column family.
  4. Review results.
Delete Bigtable Instance
  1. From the console, select the Bigtable instance.
  2. Choose Delete instance.

Additional Resources

Your on-premises team is used to working with HBase. In preparation for migrating to Google Cloud, you’ve been asked to take the lead on Cloud Bigtable. You’ll need to get familiar with creating Bigtable instances and, once they are online, using HBase shell to create tables, complete with data.

You’ll need to accomplish the following steps to complete your task:

  1. Enable APIs.
  2. Create a Cloud Bigtable instance.
  3. Update components and install HBase shell.
  4. Create a data table.
  5. Define table structure and add data.
  6. Delete the Bigtable instance.

While working on this lab, make sure to set your Cloud Shell instance to use Java version 8 for compatibility with this version of HBase by running:

export JAVA_HOME=$(update-alternatives --list java | tail -1 | sed -E 's//bin/java//')

before starting your HBase shell.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?