Skip to content

Examples of how to use Cloud Bigtable both with GCE map/reduce as well as stand alone applications.

License

Notifications You must be signed in to change notification settings

GoogleCloudPlatform/cloud-bigtable-examples

Google Cloud Bigtable examples

Travis CI status Stack Overflow

Bigger than a data warehouse, fast enough for real-time access, and less expensive than running virtual machines. The world-renowned database that powers Google is now available to you worldwide.

Overview

Google Cloud Bigtable offers you a fast, fully managed, almost infinitely scalable NoSQL database service that's ideal for web, mobile, and IoT applications requiring terabytes to petabytes of data. Unlike comparable market offerings, Cloud Bigtable doesn't require you to sacrifice speed, scale, or cost efficiency when your applications grow. The Bigtable service that Cloud Bigtable relies upon has been battle-tested at Google for more than 10 years—it's the database driving major applications such as Search, Analytics, Maps and Gmail.

Quickstart

Quickstart/HBase - Create a Cloud Bigtable Cluster and the hbase shell from within a docker container on your local machine

Java

Dataflow

  • Connector-Examples - Using the cloud dataflow connector for Bigtable, do write Hello World to two rows, Use Cloud Pub / Sub to count Shakespeare, count the number of rows in a Table, and copy records from BigQuery to BigTable.
  • Pardo-HelloWorld - example of using Cloud Dataflow without the connector.

Go

  • cbt doc Basic command line interactions with Cloud Bigtable - A really great place to start learning the Go Client.
  • helloworld - Basic Hello world example application demonstrating how to read and write to a Cloud Bigtable instance.
  • usercounter - Accessing Cloud Bigtable from App Engine Flexible
  • search - Create and search a Cloud Bigtable.

Python

  • Hello World A minimal application that demonstrates using the Googe Cloud Client libraries to create a temporary table, write some rows, read them back and clean up.
  • Hello World (Happybase) A minimal application that demonstrates using the Happybase API create a temporary table, write some rows, read them back and clean up.

Questions and discussions

If you have questions or run into issues with Google Cloud Bigtable or the client libraries, you can use any of the following forums:

You can also subscribe to google-cloud-bigtable-announce@ list to receive infrequent product and client library announcements.

Contributing changes

See CONTRIBUTING.md for more information on how to contribute to this project.

More examples

More Google Cloud Bigtable examples are available in the following languages:

License

Apache 2.0; see LICENSE for details.