2015-05-05 17:07:32 -04:00
---
layout: doc_page
---
### Build from Source
2016-01-06 00:27:52 -05:00
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 ](https://github.com/druid-io/druid/blob/master/docs/content/development/build.md ).
2015-05-05 17:07:32 -04:00
2016-01-20 21:46:26 -05:00
Building Druid requires the following:
2018-07-26 20:05:07 -04:00
- [JDK 8 ](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html )
2015-05-05 17:07:32 -04:00
- [Maven version 3.x ](http://maven.apache.org/download.cgi )
To do so, run these commands:
```
git clone git@github.com:druid-io/druid.git
cd druid
2016-02-18 16:39:13 -05:00
mvn clean package
2015-05-05 17:07:32 -04:00
```
This will compile the project and create the Druid binary distribution tar under
2015-07-07 23:51:44 -04:00
`distribution/target/druid-VERSION-bin.tar.gz` .
2016-01-06 00:27:52 -05:00
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 ](../operations/including-extensions.html ) for more information.