All Products
Search
Document Center

ApsaraDB for HBase:Upgrade ApsaraDB for HBase SDK for Java

Last Updated:May 19, 2022

You can connect to a cluster of ApsaraDB for HBase Performance-enhanced Edition by using ApsaraDB for HBase SDK for Java. Before you use ApsaraDB for HBase SDK for Java, upgrade your client based on the information in this topic.

Prerequisites

Java is installed. Alibaba Cloud SDK for Java requires JDK 1.6 or a later version.

Usage notes

  • Clients of version 1.x are used to manage ApsaraDB for HBase clusters of version 1.x.

  • Clients of version 2.x are used to manage ApsaraDB for HBase clusters of version 2.x.

  • If you use ApsaraDB for HBase Performance-enhanced Edition, we recommend that you use a client of version 2.x.

Notice

If you use a client of open source HBase, you cannot upgrade your client to the preceding versions. You can upgrade your client by using one of the following methods:

Upgrade ApsaraDB for HBase SDK for Java

  • If your client is of version 1.x, add Maven dependencies in the pom.xml file to upgrade ApsaraDB for HBase SDK for Java.

    <dependency>
      <groupId>com.aliyun.hbase</groupId>
      <artifactId>alihbase-client</artifactId>
      <version>1.8.7</version>
    </dependency>
  • If your client is of version 2.x, add Maven dependencies in the pom.xml file to upgrade ApsaraDB for HBase SDK for Java.

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