Prerequisites

Installing Java and Maven
  • JDK 8, 8u92+. We recommend using an OpenJDK distribution that provides long-term support and open-source licensing, like or Azul Zulu.
Other dependencies
  • Distribution builds require Python 3.x and the pyyaml module
Downloading the source

Building from source

The basic command to build Druid from source is:

In addition to the basic stages, you may also want to add the following profiles and properties:

  • -Pdist - Distribution profile: Generates the binary distribution tarball by pulling in core extensions and dependencies and packaging the files as distribution/target/apache-druid-x.x.x-bin.tar.gz
  • -Prat - Apache Rat profile: Runs the Apache Rat license audit tool
  • -DskipTests - Skips unit tests (which reduces build time)
  • -Ddruid.console.skip=true - Skip front end project

Potential issues

Missing

You are building Druid from source following the instructions on this page but you get

  1. [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]

On some systems, ensure you use the Python 3.x version of :

  1. pip3 install pyyaml