2015-05-05 17:07:32 -04:00
|
|
|
---
|
|
|
|
layout: doc_page
|
|
|
|
---
|
|
|
|
|
|
|
|
### Build from Source
|
|
|
|
|
2016-01-20 21:46:26 -05:00
|
|
|
Druid can be set up by building from source via git.
|
2015-05-05 17:07:32 -04:00
|
|
|
|
2016-01-20 21:46:26 -05:00
|
|
|
Building Druid requires the following:
|
2015-05-05 17:07:32 -04:00
|
|
|
- [JDK 7](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
|
|
|
|
or [JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
|
|
|
|
- [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
|
2015-07-07 23:51:44 -04:00
|
|
|
mvn clean install
|
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-20 21:46:26 -05:00
|
|
|
This will also create `distribution/target/mysql-metadata-storage-bin.tar.gz`,
|
|
|
|
which is a tarball that contains the `mysql-metadata-storage` extension.
|
2015-05-05 17:07:32 -04:00
|
|
|
|
|
|
|
You can find the example executables in the examples/bin directory:
|
|
|
|
|
|
|
|
* run_example_server.sh
|
|
|
|
* run_example_client.sh
|