druid/docs/content/development/build.md

1.3 KiB

layout
doc_page

Build from Source

The other way to setup Druid is from source via git.

Builing Druid requires the following:

To do so, run these commands:

git clone git@github.com:druid-io/druid.git
cd druid
mvn clean install

This will compile the project and create the Druid binary distribution tar under distribution/target/druid-VERSION-bin.tar.gz.

This will also create a tarball that contains mysql-metadata-storage extension under distribution/target/mysql-metadata-storage-bin.tar.gz. 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 infomation.

You can find the example executables in the examples/bin directory:

  • run_example_server.sh
  • run_example_client.sh