- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Data

Connecting to Cloud Bigtable with cbt
Sometimes data is relatively straight-forward — there's just an overwhelming amount of it. That's exactly what Cloud Bigtable is meant for. Cloud Bigtable is a fully managed NoSQL database service designed to handle massive amounts of information. In this hands-on lab, you’ll configure database instances and clusters for Cloud Bigtable in the console and then use command line `cbt` commands to create a schema and populate the table with data.

Lab Info
Table of Contents
-
Challenge
Enable API
- From the main navigation, choose APIs & Services > Library.
- In the search field, enter Bigtable.
- Select the Cloud Bigtable 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:
- Instance Name: la-data-cbt
- Storage type: HDD
- Cluster Region: us-east1
- Cluster Zone: us-east1-b
- Click Done and then Create.
-
Challenge
Install and Configure `cbt`
-
Activate the Cloud Shell by clicking its icon in the top row.
-
Configure
cbt
with the following commands: echo "project = ${DEVSHELL_PROJECT_ID}" > ~/.cbt echo instance = la-data-cbt >> ~/.cbtrc
Note: If you do not have the cbt sdk installed then do the following:
- In the Cloud Shell, enter the following: gcloud components update gcloud components install cbt
-
-
Challenge
Create Data Table
-
In the Cloud Shell, enter the following:
cbt createtable la-table cbt ls
-
-
Challenge
Define Table Structure and Add Data
-
In the Cloud Shell, enter the following: cbt createfamily la-table offerings cbt set la-table r1 offerings:c1=labs cbt read la-table
-
Review results.
-
Enter the following: cbt set la-table r1 offerings:c2=courses cbt read la-table
-
-
Challenge
Delete Bigtable Instance
- From the console, select the Bigtable instance.
- Choose Delete instance.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.