Compiling HBase-shaded-netty-2.1.0
- Download the source code.
1wget https://github.com/apache/hbase-thirdparty/archive/rel/2.1.0.tar.gz - Decompress the source code package.
1tar -zxf 2.1.0.tar.gz
- Go to the directory generated after the decompression.
1cd hbase-thirdparty-rel-2.1.0
- Modify the pom.xml file.
- Open the file.
1vi pom.xml - Press i to enter the insert mode and add the Kunpeng Maven repository source.
1 2 3 4 5 6 7
<repositories> <repository> <id>kunpengmaven</id> <name>kunpeng maven</name> <url>https://mirrors.huaweicloud.com/kunpeng/maven</url> </repository> </repositories>
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Change x86_64 to aarch_64 in the hbase-shaded-netty/pom.xml file.
- Open the file.
1vi hbase-shaded-netty/pom.xml - Press i to enter the insert mode and change x86_64 to aarch_64.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Perform compilation.
1mvn clean install
The compiled package is in the hbase-thirdparty-rel-2.1.0/hbase-shaded-netty/target directory.
Parent topic: HBase-shaded-netty Porting Guide (CentOS&openEuler)