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
- From the main navigation menu, choose APIs & Services. Then select Library.
- In the search field, enter "Bigtable".
- Select the Cloud Bigtable Table Admin API card.
- Click Enable.
- Create Bigtable Instance
- From the main navigation, choose Bigtable in the Storage section.
- Choose Create instance.
- Set the following fields:
- Name: "la-data-hbase"
- Instance type: Development
- Storage type: HDD
- Cluster Region: us-east1
- Cluster Zone: us-east-1d
- Click Done and then Create.
- Install and Start HBase Shell
Activate the Cloud Shell by clicking its icon in the top row.
In the Cloud Shell, clone an existing repository from GitHub for Google Cloud Platform from https://github.com/GoogleCloudPlatform/cloud-bigtable-examples.git.
Set your Cloud Shell instance to use Java version 8 for compatibility with this version of HBase.
Start the HBase shell.
- Create Data Table and Column Family
- Create a Bigtable table "la-table" with a column family "offerings".
- Review the results.
- Define Table Structure and Add Data
- Create the table qualifier and first cell of the Bigtable table.
- View the data in the table.
- Add a second cell to the same column family.
- Review results.
- Delete Bigtable Instance
- From the console, select the Bigtable instance.
- Choose Delete instance.