mirror of
https://github.com/apache/druid.git
synced 2025-02-17 15:35:56 +00:00
* Docusaurus build framework + ingestion doc refresh. * stick to npm instead of yarn * fix typos * restore some _bin * Adjustments. * detect and fix redirect anchors * update anchor lint * Web-console: remove specific column filters (#8343) * add clear filter * update tool kit * remove usless check * auto run * add % * Fix resource leak (#8337) * Fix resource leak * Patch comments * Enable Spotbugs NP_NONNULL_RETURN_VIOLATION (#8234) * Fixes from PR review. * Fix more anchors. * Preamble nix. * Fix more anchors, headers * clean up placeholder page * add to website lint to travis config * better broken link checking * travis fix * Fixed more broken links * better redirects * unfancy catch * fix LGTM error * link fixes * fix md issues * Addl fixes
2.7 KiB
2.7 KiB
id | title |
---|---|
build | Build from source |
You can build Apache Druid (incubating) directly from source. Please note that these instructions are for building the latest stable version of Druid. For building the latest code in master, follow the instructions here.
Prerequisites
Installing Java and Maven:
- JDK 8, 8u92+. We recommend using an OpenJDK distribution that provides long-term support and open-source licensing, like Amazon Corretto or Azul Zulu.
- Maven version 3.x
Downloading the source:
git clone git@github.com:apache/incubator-druid.git
cd druid
Building the source
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:
- -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
- -Papache-release - Apache release profile: Generates GPG signature and checksums, and builds the source distribution tarball as
distribution/target/apache-druid-x.x.x-src.tar.gz
- -Prat - Apache Rat profile: Runs the Apache Rat license audit tool
- -DskipTests - Skips unit tests (which reduces build time)
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