This README provides step-by-step instructions for setting up Druid in a local standalone mode on an Ubuntu machine. Please ensure you meet the prerequisites before starting.
-
A machine with a minimum of 5 GB RAM. If using AWS, consider the
t2.large
instance type and allow incoming traffic on port 8888 in the security group. -
Java is a prerequisite. Install it with the following command:
sudo apt install default-jre
-
Download and extract Druid:
cd /home/ubuntu/downloads wget https://dlcdn.apache.org/druid/27.0.0/apache-druid-27.0.0-bin.tar.gz tar -xzf apache-druid-27.0.0-bin.tar.gz
-
Create a systemd service (use ROOT user for this):
-
Create a service file:
vi /etc/systemd/system/druid.service
-
Paste the text from the
druid.service
file available in this repository. -
Reload the systemd manager configuration:
systemctl daemon-reload
-
Enable the Druid service to start on boot:
systemctl enable druid
-
Start the Druid service:
systemctl start druid
-
-
Check the service status:
systemctl status druid
The service should be in the active state. Wait for 2-3 minutes.
- If you're getting a connection refused, check the status of the service. There might be some configuration or Druid start-up issues.
- If you're getting a connection timed out, check the security group. You might have missed enabling the 8888 port in the security group.