All Products
Search
Document Center

ApsaraDB for HBase:Use ApsaraDB for HBase SDK for Java to replace an open source HBase version with an ApsaraDB for HBase version

Last Updated:May 09, 2023

This topic describes how to replace an open source HBase version with the corresponding ApsaraDB for HBase version.

Prerequisites

Java is installed, and the version of ApsaraDB for HBase SDK for Java is 1.8 or later.

Usage notes

  • Open source HBase 1.x in a client is replaced with ApsaraDB for HBase 1.x.

  • Open source HBase 2.x in a client is replaced with ApsaraDB for HBase 2.x.

Use ApsaraDB for HBase SDK for Java to replace an open source HBase version with an ApsaraDB for HBase version

Note

If you use ApsaraDB for HBase SDK for Java for the first time, we recommend that you select the latest ApsaraDB for HBase version. For example, if the open source HBase version in your client is 1.1.1 and the latest ApsaraDB for HBase version is 1.8.8, we recommend that you replace the open source HBase version in your client with ApsaraDB for HBase 1.8.8.

  • If the open source HBase version in your client is 1.x, add Maven dependencies in the pom.xml file to use ApsaraDB for HBase SDK for Java to replace the open source HBase version with the corresponding ApsaraDB for HBase version.

    <dependency>
      <groupId>com.aliyun.hbase</groupId>
      <artifactId>alihbase-client</artifactId>
      <version>1.8.8</version>
    </dependency>
  • If the open source HBase version in your client is 2.x, add Maven dependencies in the pom.xml file to use ApsaraDB for HBase SDK for Java to replace the open source HBase version with the corresponding ApsaraDB for HBase version.

    <dependency>
      <groupId>com.aliyun.hbase</groupId>
      <artifactId>alihbase-client</artifactId>
      <version>2.8.7</version>
    </dependency>