How to Install Druid on macOS

Introduction

Druid is an open-source data store designed for sub-second queries on real-time and batch data. In this tutorial, we will guide you through the installation process of Druid on macOS.

Prerequisites

  • Homebrew installed on your macOS
  • Java Development Kit (JDK) version 8 or higher installed on your macOS
  • At least 4GB of RAM and 4 CPU cores available on your device

Steps

  1. Open Terminal on your macOS by using Spotlight or accessing it from the Applications > Utilities folder.

  2. Install Druid from Homebrew by running the following command:

brew install druid
  1. Verify the installation by running the following command:
druid version
  1. Download the Druid configuration files from the official website using the following command:
curl -O https://druid.apache.org/files/druid-0.18.2-bin.tar.gz
  1. Extract the downloaded files to the /opt directory using the following command:
sudo tar -zxvf druid-0.18.2-bin.tar.gz -C /opt
  1. Set the DRUID_HOME environment variable to the extracted Druid directory using the following command:
export DRUID_HOME=/opt/druid-0.18.2
  1. Start the Druid cluster by running the following command:
cd $DRUID_HOME && ./bin/start-micro-quickstart
  1. Open a web browser and go to http://localhost:8888 to access the Druid console.

Congratulations! You have successfully installed Druid on your macOS device. You can now start querying real-time and batch data by creating Druid data sources and ingesting data into the Druid cluster.