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

chengluo331/cloud-bigtable-examples

 
 

Repository files navigation

Google Cloud Bigtable examples

ghit.me

There are many examples / sample / demo programs here, each with its own README.

Quickstart

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

Java

  • Simple-CLI - A simple command line interface for Cloud Bigtable that shows you how to do basic operations with the native HBase API
  • Hello World - A minimal application that demonstrates using the native HBase API to create a temporary table, write some rows, read them back and clean up
  • Import HBase Sequence files Import HBase sequence files directly to Cloud Bigtable using Dataflow.
  • Dataproc Wordcount using Map/Reduce - How to load data to Cloud Bigtable using Dataproc on GCE
  • GAE Flexible-Hello World - Accessing Cloud Bigtable from a Managed VM / JSON Upload / Download

Dataflow

  • Connector-Examples - Using the cloud dataflow connector for Bigtable, do write Hello World to two rows, Use Cloud Pub / Sub to count Shakespeare, and count the number of rows in a Table.
  • Pardo-HelloWorld - example of using Cloud Dataflow without the connector.
  • dataflow-coinbase - An end to end example that takes the last four hours of Bitcoin data and sends it to Google Cloud Dataflow, which process it and sends it to Google Cloud Bigtable. Then there is a Managed VM application that displays the data in an angularJS app.

Go

  • cbt doc Basic command line interactions with Cloud Bigtable - A really great place to start learning the Go Client.
  • Bigtable-Hello - Accessing Cloud Bigtable from a Managed VM
  • search - Create and search a Cloud Bigtable.

Python

  • Thrift - Setup an HBase Thrift server(s) to use Cloud Bigtable and access that from Python to do basic operations.
    • AppEngine SSL Gateway - Shows how to setup and secure an HBase Thrift gateway and then access it from App Engine.
  • REST - Setup an HBase REST server(s) to use Cloud Bigtable and access it from Python and do basic operations.

Scala / Spark

  • PubSub – Integrating Spark Streaming with Cloud Pubsub
  • Standalone-Wordcount – Simple Spark job that counts the number of times a word appears in a text file
  • Streaming-Wordcount – Pulls new files from a GCS directory every 30 seconds and perform a simple Spark job that counts the number of times a word appears in each new file

Contributing changes

Licensing

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 64.1%
  • Scala 11.4%
  • Shell 9.9%
  • Python 9.1%
  • HTML 2.8%
  • Makefile 1.7%
  • JavaScript 1.0%