Skip to content

Instantly share code, notes, and snippets.

@jihoonson
Created August 21, 2018 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jihoonson/bffa89fd2a5f9473bb6467d3c52f12f6 to your computer and use it in GitHub Desktop.
Save jihoonson/bffa89fd2a5f9473bb6467d3c52f12f6 to your computer and use it in GitHub Desktop.
example-build.md
layout
doc_page

Build from Source

You can build Druid directly from source. Please note that these instructions are for building the latest stable of Druid. For building the latest code in master, follow the instructions here.

Prerequisites

Installing Java and Maven:
Downloading the source:
git clone git@github.com:druid-io/druid.git
cd druid

Building the source

Building the Druid binary distribution tarball:
mvn clean install -Pdist -Dtar -DskipTests

Once it succeeds, you can find the Druid binary (druid-VERSION-bin.tar.gz) and mysql-metadata-storage extension under ${DRUID_ROOT}/distribution/target/.

If you want Druid to load mysql-metadata-storage, you can first untar druid-VERSION-bin.tar.gz, then go to druid-<version>/extensions, untar mysql-metadata-storage-bin.tar.gz there. Now just specifiy mysql-metadata-storage in druid.extensions.loadList so that Druid will pick it up. See Including Extensions for more information.

Building the source code only:
mvn clean install -DskipTests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment