Compiling HBase
- Download the HBase installation package.
1wget http://archive.apache.org/dist/hbase/2.1.0/hbase-2.1.0-src.tar.gz - Decompress the package.
1tar -zxf hbase-2.1.0-src.tar.gz
- Go to the directory generated after the decompression and add the Huawei Kunpeng repository to the pom.xml file.
1cd hbase-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 to the first line of the <repositories> tag.
1 2 3 4 5
<repository> <id>kunpengmaven</id> <name>kunpeng maven</name> <url>https://mirrors.huaweicloud.com/kunpeng/maven</url> </repository>
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Perform compilation.
1mvn clean package -DskipTests assembly:single
After the compilation is successful, a tar.gz package is generated in the hbase-assembly/target/ directory of the source code.
- Use the Kunpeng Porting Advisor to scan the .tar package generated after the compilation and ensure that the .tar package does not contain the x86 .so or .jar packages.
- The compiled HBase package must be scanned by using the Kunpeng Porting Advisor to ensure that no x86 .so or .jar packages are contained. If the compiled package contains x86 .so or .jar packages, the component functions may be affected.
- For details about how to use the Kunpeng Porting Advisor, see Kunpeng Porting Advisor Case Study.
Parent topic: Porting Guide (CentOS & openEuler)