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.
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:
Modify Maven dependencies to upgrade your client of open source HBase to a client of ApsaraDB for HBase. For more information, see Modify Maven dependencies to upgrade your client.
Replace JAR files to upgrade your client of open source HBase to a client of ApsaraDB for HBase. For more information, see Replace JAR files to upgrade your client.
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>