Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling HBase

  1. Download the HBase installation package.
    1
    wget http://archive.apache.org/dist/hbase/2.1.0/hbase-2.1.0-src.tar.gz
    
  2. Decompress the package.
    1
    tar -zxf hbase-2.1.0-src.tar.gz
    
  3. Go to the directory generated after the decompression and add the Huawei Kunpeng repository to the pom.xml file.
    1
    cd hbase-2.1.0
    
  4. Modify the pom.xml file.
    1. Open the file.
      1
      vi pom.xml
      
    2. 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>
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Perform compilation.
    1
    mvn 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.

  6. 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.