Compiling Tez
- Download the Tez 0.10.0 source code.
1wget https://github.com/apache/tez/archive/refs/tags/rel/release-0.10.0.tar.gz --no-check-certificate
- Extract the Tez source archive.
1tar -zxvf release-0.10.0.tar.gz
- Go to the tez-rel-release-0.10.0 directory.
1cd tez-rel-release-0.10.0
- Modify the Hadoop version.
- Check the Hadoop version in the environment. In this example, the Hadoop version is 3.1.1.
1hadoop version - Open pom.xml.
1vi pom.xml - 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.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Check the Hadoop version in the environment. In this example, the Hadoop version is 3.1.1.
- Do not compile the tez-ui module because the compiling time-consuming and error-prone.
- Open pom.xml.
1vi pom.xml - Press i to go to the insert mode and comment out <module>tez-ui</module>, as shown in the following figure.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open pom.xml.
- Compile Tez.
1mvn clean install -DskipTests
- After the compilation is complete, go to the ./tez-dist/target directory to obtain the archive tez-0.10.0.tar.gz.
Parent topic: Deploying Tez