Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling Tez

  1. Download the Tez 0.10.0 source code.
    1
    wget  https://github.com/apache/tez/archive/refs/tags/rel/release-0.10.0.tar.gz --no-check-certificate
    
  2. Extract the Tez source archive.
    1
    tar -zxvf release-0.10.0.tar.gz
    
  3. Go to the tez-rel-release-0.10.0 directory.
    1
    cd tez-rel-release-0.10.0
    
  4. Modify the Hadoop version.
    1. Check the Hadoop version in the environment. In this example, the Hadoop version is 3.1.1.
      1
      hadoop version
      
    2. Open pom.xml.
      1
      vi pom.xml
      
    3. Press i to go to the insert mode and modify the Hadoop version:
      1
      <hadoop.version>3.1.1</hadoop.version>
      

      Change the version to the installed Hadoop version.

    4. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Do not compile the tez-ui module because the compiling time-consuming and error-prone.
    1. Open pom.xml.
      1
      vi pom.xml
      
    2. Press i to go to the insert mode and comment out <module>tez-ui</module>, as shown in the following figure.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Compile Tez.
    1
    mvn clean install -DskipTests
    

    If the Maven plugin package is not found during Tez compilation, reinstall Maven by following instructions in the Installing Maven section of the Hive Porting Guide (CentOS & openEuler).

  7. After the compilation is complete, go to the ./tez-dist/target directory to obtain the archive tez-0.10.0.tar.gz.