- Lab
- A Cloud Guru
Connecting to Cloud Bigtable with HBase Shell
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.
Path Info
Table of Contents
-
Challenge
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.
-
Challenge
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.
-
Challenge
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 and checkout the "ee436eb" branch.
-
Install and set your Cloud Shell instance to use Java version 8 for compatibility with this version of HBase.
-
Start the HBase shell.
-
-
Challenge
Create Data Table and Column Family
- Create a Bigtable table "la-table" with a column family "offerings".
- Review the results.
-
Challenge
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.
-
Challenge
Delete Bigtable Instance
- From the console, select the Bigtable instance.
- Choose Delete instance.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.