How to Install Druid on Elementary OS

Druid is a real-time analytical data store designed to quickly process large volumes of data. If you're looking for a tool to help you query data in real-time, Druid is a great option to consider. In this tutorial, we'll walk you through the steps to install Druid on Elementary OS.

Prerequisites

Before getting started, ensure that you have the following:

  • Elementary OS latest version installed
  • A user account with sudo privileges

Step 1: Install Java

Druid is a Java application, so it needs a Java Virtual Machine (JVM) to run. You can install the default version of OpenJDK using the following command:

sudo apt install default-jdk

To verify that Java has been installed successfully, run the following command:

java -version

This should display the version of OpenJDK installed on your system.

Step 2: Install ZooKeeper

Druid uses Apache ZooKeeper as a distributed coordination service. Install ZooKeeper using the following command:

sudo apt install zookeeperd

Once installed, start ZooKeeper using the following command:

sudo systemctl start zookeeper

To verify that ZooKeeper is running, run the following command:

sudo systemctl status zookeeper

Step 3: Install Druid

To install Druid, follow the steps below:

  1. Go to http://druid.io/ and download the latest version of Druid.

  2. Extract the downloaded file:

    tar -xzf druid-*.tar.gz
    
  3. Move the extracted directory to the appropriate location (e.g., /opt):

    sudo mv druid-*/ /opt/druid
    
  4. Set the DRUID_HOME environment variable by adding the following line to your ~/.bashrc file:

    export DRUID_HOME=/opt/druid
    

    Then, run the following command to apply the changes:

    source ~/.bashrc
    

Conclusion

That's it! You've successfully installed Druid on Elementary OS. Now, you can start exploring the powerful features of Druid to handle your data analysis needs.