Using the Cloud Bigtable HBase Client for Java with Maven

The Cloud Bigtable HBase client for Java is available in the Maven Repository, making it easy to use Cloud Bigtable in an Apache Maven project.

Overview of Maven artifacts

The Cloud Bigtable HBase client for Java includes three Maven artifacts that you can use in your project:

Each artifact tracks the APIs for a different version of HBase. The remainder of these instructions assumes that you are using bigtable-hbase-1.2.

You must also add the appropriate artifact to support encryption of your data. See "Setting up encryption" for details.

Adding a Cloud Bigtable artifact to a project

To add a Cloud Bigtable artifact to a Maven project, simply add the artifact to the <dependencies> section of your pom.xml file, along with the artifact for the HBase client.

To add the required artifacts:


Setting up encryption

To encrypt your data, the Cloud Bigtable HBase client for Java uses the netty-tcnative library. For simplicity of installation, you should use the netty-tcnative artifact that is statically linked against BoringSSL, a fork of OpenSSL. This artifact is called netty-tcnative-boringssl-static.

To use netty-tcnative-boringssl-static, your system must meet the following requirements:

  • netty-tcnative-boringssl-static 1.1.33.Fork19 must be on the Java classpath. (Other versions are not compatible with the Cloud Bigtable HBase client for Java.) The example below shows how to add this dependency to your pom.xml file.
  • You must be using Linux, OS X, or Windows on an x86 64-bit processor.

To add the required artifact to your pom.xml file:


Send feedback about...

Cloud Bigtable Documentation