You can build Apache Druid directly from source. Use the version of this page that matches the version you want to build. For building the latest code in master, follow the latest version of this page here: make sure it has /master/
in the URL.
pyyaml
module.pyyaml
version 5.1 or later.git clone git@github.com:apache/druid.git cd druid
The basic command to build Druid from source is:
mvn clean install
This will run static analysis, unit tests, compile classes, and package the projects into JARs. It will not generate the source or binary distribution tarball.
In addition to the basic stages, you may also want to add the following profiles and properties:
distribution/target/apache-druid-x.x.x-bin.tar.gz
distribution/target/apache-druid-x.x.x-src.tar.gz
Putting these together, if you wish to build the source and binary distributions with signatures and checksums, audit licenses, and skip the unit tests, you would run:
mvn clean install -Papache-release,dist,rat -DskipTests
pyyaml
You are building Druid from source following the instructions on this page but you get
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (generate-binary-license) on project distribution: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
Resolution: Make sure you have Python installed as well as the yaml
module:
pip install pyyaml
On some systems, ensure you use the Python 3.x version of pip
:
pip3 install pyyaml