Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing Software

Compiling and Installing apr-1.5.2

  1. Download the apr-1.5.2 source code package and decompress it.
    1
    2
    wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
    tar -zxvf apr-1.5.2.tar.gz
    
  2. Go to the directory generated after the decompression.
    1
    cd apr-1.5.2
    
  3. Perform the compilation and installation.
    1
    2
    3
    ./configure
    make
    make install
    

Compiling and installing netty-tcnative-1.1.32.Fork1

  1. Download the netty-tcnative-1.1.32.Fork1 source code package.
    1
    wget https://codeload.github.com/netty/netty-tcnative/tar.gz/netty-tcnative-1.1.32.Fork1
    
  2. Decompress the source code package.
    1
    2
    mv netty-tcnative-1.1.32.Fork1 netty-tcnative-1.1.32.Fork1.tar.gz
    tar -zxvf netty-tcnative-1.1.32.Fork1.tar.gz
    
  3. Switch to the directory where the netty-tcnative source code package is decompressed.
    1
    cd netty-tcnative-netty-tcnative-1.1.32.Fork1
    
  4. Compile and package the file to the local Maven repository.
    1
    mvn install
    

Compiling and Installing netty-4.0.27.Final

  1. Download the netty-4.0.27 source code package.
    1
    wget https://github.com/netty/netty/archive/netty-4.0.27.Final.tar.gz
    
  2. Decompress the source code package.
    1
    tar -zxvf netty-4.0.27.Final.tar.gz
    
  3. Go to the directory where the Netty source package is decompressed.
    1
    cd netty-netty-4.0.27.Final
    
  4. Compile and package netty-4.0.27.Final.jar to the all/target directory.
    1
    mvn install -DskipTests
    

Compiling Flink-shaded-netty

  1. Download the flink-shaded-2.0 installation package.
    1
    wget https://codeload.github.com/apache/flink-shaded/tar.gz/2.0
    
  2. Decompress the installation package.
    1
    2
    mv 2.0 flink-shaded-2.0.tar.gz
    tar -zxvf flink-shaded-2.0.tar.gz
    
  3. Go to the directory generated after the decompression.
    1
    cd flink-shaded-2.0
    
  4. Modify the pom.xml file. You only need to compile and package flink-shaded-netty-4. Therefore, comment out the modules that are not required.
    1. Open the file.
      1
      vi pom.xml
      
    2. Press i to enter the insert mode and modify the content of <modules> as follows:
      1
      2
      3
      4
      5
      6
      <modules>
          <!--<module>flink-shaded-asm-5</module>
          <module>flink-shaded-guava- 18</module>-->
          <module>flink-shaded-netty-4</module>
          <! --<module>flink-shaded-jackson-2</module>-->
      </modules>
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Compile and package flink-shaded-netty-4.0.27.Final-2.0.jar to the flink-shaded-netty-4/target/ directory.
    1
    mvn install package -DskipTests