Compilation
Download Docker Mirror
Check mirror download completed:
Note: For different versions of Oris, you need to download the corresponding mirror version.
Running Mirror
$ docker run -it apachedoris/doris-dev:build-env
It is recommended to run the container by mounting the local Doris source directory, so that the compiled binary file will be stored in the host machine and will not disappear because the container exits.
At the same time, it is recommended to mount the maven
.m2
directory in the mirror to the host directory at the same time to prevent repeated downloading of maven’s dependent libraries each time the compilation is started.$ docker run -it -v /your/local/.m2:/root/.m2 -v /your/local/incubator-doris-DORIS-x.x.x-release/:/root/incubator-doris-DORIS-x.x.x-release/ apachedoris/doris-dev:build-env
Download source code
Compile Doris
After compilation, the output file is in the directory.
Self-compiling Development Environment Mirror
You can also create a Doris development environment mirror yourself, referring specifically to the docker/README.md
file.
You can try to compile Doris directly in your own Linux environment.
System Dependence
GCC 7.3+, Oracle JDK 1.8+, Python 2.7+, Apache Maven 3.5+, CMake 3.11+ Bison 3.0+
If you are using Ubuntu 16.04 or newer, you can use the following command to install the dependencies
sudo apt-get install build-essential openjdk-8-jdk maven cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python
If you are using CentOS you can use the following command to install the dependencies
After installation, set environment variables ,
JAVA_HOME
, etc.Compile Doris
After compilation, the output file is in the
output/
directory.
Could not transfer artifact net.sourceforge.czt.dev:cup-maven-plugin:pom:1.6-cdh from/to xxx
If you encounter the above error, please refer to to modify the cloudera-related repo configuration in
fe/pom.xml
.
Starting from version 0.13, the dependency on the two third-party libraries [1] and [2] will be removed in the default compiled output. These two third-party libraries are under GNU General Public License V3 (opens new window). This license is incompatible with , so it should not appear in the Apache release by default.
Remove library [1] will result in the inability to access MySQL external tables. The feature of accessing MySQL external tables will be implemented through in future release version.
Remove library [2] will cause some data written in earlier versions (before version 0.8) to be unable to read. Because the data in the earlier version was compressed using the LZO algorithm, in later versions, it has been changed to the LZ4 compression algorithm. We will provide tools to detect and convert this part of the data in the future.
If required, users can continue to use these two dependent libraries. If you want to use it, you need to add the following options when compiling:
WITH_MYSQL=1 WITH_LZO=1 sh build.sh
- [1] mysql-5.7.18