Overview of Maven artifacts
The Cloud Bigtable HBase client for Java includes three Maven artifacts that you can use in your project:
bigtable-hbase-1.0: Client based on HBase 1.0.x.
bigtable-hbase-1.1: Client based on HBase 1.1.x.
bigtable-hbase-1.2: Client based on HBase 1.2.x.
bigtable-hbase-mapreduce: MapReduce job for importing data into Cloud Bigtable.
Each artifact tracks the APIs for a different version of HBase. The remainder of
these instructions assumes that you are using
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
<dependencies> section of your
pom.xml file, along with the artifact for
the HBase client.
To add the required artifacts:
<dependency> <groupId>com.google.cloud.bigtable</groupId> <artifactId>bigtable-hbase-1.2</artifactId> <version>0.9.4</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>1.2.1</version> </dependency>
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, your system must meet the following
netty-tcnative-boringssl-static1.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
- You must be using Linux, OS X, or Windows on an x86 64-bit processor.
To add the required artifact to your
<dependency> <groupId>io.netty</groupId> <artifactId>netty-tcnative-boringssl-static</artifactId> <version>1.1.33.Fork19</version> </dependency>