All Products
Search
Document Center

Use Maven for upgrade

Last Updated: Sep 29, 2020

This topic describes how to modify the Maven dependency to upgrade your client to the ApsaraDB for HBase version that is compatible with the HBase community edition. Follow this topic if your applications are reliant on the client of the HBase community edition and cannot be upgraded to the latest version of ApsaraDB for HBase client.

Applications reliant on the client of the HBase community edition

  1. <dependency>
  2. <groupId>org.apache.hbase</groupId>
  3. <artifactId>hbase-client</artifactId>
  4. <version>x.x.x</version>
  5. </dependency>

Replace the preceding code block with the following code block:

  1. <dependency>
  2. <groupId>com.alibaba.hbase</groupId>
  3. <artifactId>alihbase-client</artifactId>
  4. <version>x.x.x</version>
  5. </dependency>
  6. <! --Replace ${connector-version} with the corresponding version of hbase-client. For more information, see the following compatibility matrix.-->
  7. <dependency>
  8. <groupId>com.alibaba.hbase</groupId>
  9. <artifactId>alihbase-connector</artifactId>
  10. <version>${connector-version}</version>
  11. <exclusions>
  12. <exclusion>
  13. <groupId>org.apache.hbase</groupId>
  14. <artifactId>hbase-client</artifactId>
  15. </exclusion>
  16. </exclusions>
  17. </dependency>

Applications indirectly reliant on the client of the HBase community edition

This method is applicable to applications whose third-party dependencies are reliant on ApsaraDB for HBase.

  1. <! --Third-party dependencies:-->
  2. <dependency>
  3. <groupId>xxx.xxx.xxx</groupId>
  4. <artifactId>yyy</artifactId>
  5. <version>z.z.z</version>
  6. </dependency>

Replace the preceding code block with the following code block:

  1. <! --Remove the dependency of the community edition of hbase-client.-->
  2. <dependency>
  3. <groupId>xxx.xxx.xxx</groupId>
  4. <artifactId>yyy</artifactId>
  5. <version>z.z.z</version>
  6. <exclusions>
  7. <exclusion>
  8. <groupId>org.apache.hbase</groupId>
  9. <artifactId>hbase-client</artifactId>
  10. </exclusion>
  11. </exclusions>
  12. </dependency>
  13. <! --Add the alihbase-client dependency.-->
  14. <dependency>
  15. <groupId>com.alibaba.hbase</groupId>
  16. <artifactId>alihbase-client</artifactId>
  17. <version>x.x.x</version>
  18. </dependency>
  19. <! --Replace ${connector-version} with the corresponding version of hbase-client. For more information, see the following compatibility matrix.-->
  20. <dependency>
  21. <groupId>com.alibaba.hbase</groupId>
  22. <artifactId>alihbase-connector</artifactId>
  23. <version>${connector-version}</version>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.apache.hbase</groupId>
  27. <artifactId>hbase-client</artifactId>
  28. </exclusion>
  29. </exclusions>
  30. </dependency>

Correlation between hbase-client and alihbase-connector

hbase-client version Connector version
1.0.0 1.0.24.1
1.0.1 1.0.24.1
1.0.1.1 1.0.24.1
1.0.2 1.0.24.1
1.0.3 1.0.24.1
1.1.0 1.0.24.1
1.1.0.1 1.0.24.1
1.1.1 1.0.24.1
1.1.2 1.0.24.1
1.1.3 1.0.24.1
1.1.4 1.0.24.1
1.1.5 1.0.24
1.1.6 1.0.24
1.1.7 1.0.24
1.1.8 1.0.24
1.1.9 1.0.24
1.1.10 1.0.24
1.1.11 1.0.24
1.1.12 1.0.24
1.1.13 1.0.24
1.2.0 1.0.24.1
1.2.1 1.0.24
1.2.2 1.0.24
1.2.3 1.0.24
1.2.4 1.0.24
1.2.5 1.0.24
1.2.6 1.0.24
1.2.6.1 1.0.24
1.2.7 1.0.24
1.2.8 1.0.24
1.2.9 1.0.24
1.2.10 1.0.24
1.2.11 1.0.24
1.2.12 1.0.24
1.3.0 1.0.24
1.3.1 1.0.24
1.3.2 1.0.24
1.3.2.1 1.0.24
1.3.3 1.0.24
1.3.4 1.0.24
1.3.5 1.0.24
1.3.6 1.0.24
1.4.0 1.0.24
1.4.1 1.0.24
1.4.2 1.0.24
1.4.3 1.0.24
1.4.4 1.0.24
1.4.5 1.0.24
1.4.6 1.0.24
1.4.7 1.0.24
1.4.8 1.0.24
1.4.9 1.0.24
1.4.10 1.0.24
1.4.11 1.0.24
1.4.12 1.0.24
1.4.13 1.0.24
1.5.0 1.0.24
1.6.0 1.0.24
2.0.0 2.0.24
2.0.1 2.0.24
2.0.2 2.0.24.1
2.0.3 2.0.24.1
2.0.4 2.0.24.1
2.0.5 2.0.24.1
2.0.6 2.0.24.1
2.1.0 2.0.24
2.1.1 2.0.24.1
2.1.2 2.0.24.1
2.1.3 2.0.24.1
2.1.4 2.0.24.1
2.1.5 2.0.24.1
2.1.6 2.0.24.1
2.1.7 2.0.24.1
2.1.8 2.0.24.1
2.1.9 2.0.24.1
2.2.0 2.0.24.1
2.2.1 2.0.24.1
2.2.2 2.0.24.1
2.2.3 2.0.24.1