Setting up Druid single instance - OXYGEN-MARKET/oxygen-market.github.io GitHub Wiki
HOME > SNOWPLOW SETUP GUIDE > Step 4: setting up alternative data stores > [Setup Druid](Setup Druid) > Setup Druid single instance
This is the single-instance setup guide for getting a local version of Druid working with Snowplow. This is designed for development and testing.
This deployment must NOT be used to put Druid into production with Snowplow - it does NOT scale.
You will need Apache ZooKeeper running on your machine.
First download it:
curl http://www.gtlib.gatech.edu/pub/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz -o zookeeper-3.4.6.tar.gz
sudo tar xzf zookeeper-3.4.6.tar.gz -C /opt
cd /opt/zookeeper-3.4.6
Copy across the default ZooKeeper configuration:
sudo cp conf/zoo_sample.cfg conf/zoo.cfg
Finally start ZooKeeper:
sudo ./bin/zkServer.sh start
Leave this terminal running.
You will need Druid server running on your machine.
Download the Druid binaries:
$ wget http://static.druid.io/artifacts/releases/druid-0.8.3-bin.tar.gz
$ tar -xvf druid-0.8.3-bin.tar.gz -C /opt
LICENSE extensions-repo run_example_client.sh
config lib run_example_server.sh
examples run_druid_server.sh select_example.sh
Now start up Druid:
https://github.com/boneill42/druid-vagrant/blob/master/supervisor/supervisord.conf
$ xxx
Leave this terminal running.
You will need Tranquility Server running on your machine.
First download it:
$ wget http://static.druid.io/tranquility/releases/tranquility-distribution-0.7.2.tgz
$ sudo tar -xvf tranquility-distribution-0.7.2.tgz -C /opt
$ cd /opt/tranquility-distribution-0.7.2/conf
Now download the Snowplow configuration file for Tranquility Server:
$ wget https://raw.githubusercontent.com/snowplow/snowplow/feature/druid/4-storage/druid-storage/config/tranquility-server.conf
Now start up Tranquility Server:
$ bin/tranquility server -configFile conf/tranquility-server.conf
Druid UIs:
Overlord, Coordinator - http://localhost:8090/console.html
Tranquility - http://localhost:8200/