Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling HBase-shaded-netty-2.1.0

  1. Download the source code.
    1
    wget https://github.com/apache/hbase-thirdparty/archive/rel/2.1.0.tar.gz
    
  2. Decompress the source code package.
    1
    tar -zxf 2.1.0.tar.gz
    
  3. Go to the directory generated after the decompression.
    1
    cd hbase-thirdparty-rel-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.
      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>
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Change x86_64 to aarch_64 in the hbase-shaded-netty/pom.xml file.
    1. Open the file.
      1
      vi hbase-shaded-netty/pom.xml
      
    2. Press i to enter the insert mode and change x86_64 to aarch_64.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Perform compilation.
    1
    mvn clean install
    

    The compiled package is in the hbase-thirdparty-rel-2.1.0/hbase-shaded-netty/target directory.