How to Install Druid on Arch Linux
Druid is an open-source, high-performance, column-oriented, distributed data store. It is used for real-time data analysis, batch data processing, and data ingestion. In this tutorial, we will explain how to install Druid on Arch Linux.
Requirements
Before we install Druid, we must meet the following requirements:
- A Linux system running Arch Linux
- Java 8 or higher
- At least 16GB of RAM
- At least 4 cores
Step 1 - Install Java
Druid requires Java 8 or higher to run. We can install Java using the following command:
sudo pacman -S jdk8-openjdk
Step 2 - Downloading Druid
We can download the latest version of Druid from the official website or the GitHub repository. In this tutorial, we will download the latest stable release from the Druid website using the following command:
wget https://downloads.apache.org/druid/2022-01-06/apache-druid-0.23.2-bin.tar.gz
Once the download is complete, we can extract the contents of the archive using the following command:
tar -zxvf apache-druid-0.23.2-bin.tar.gz
Step 3 - Configuring Druid
After extracting the contents of the Druid archive, we must configure Druid. For this, we need to modify the configuration files located in the conf/druid directory.
cd apache-druid-0.23.2/conf/druid
Now, we need to configure the following files:
common.runtime.propertieszookeeper.propertiesbroker/runtime.propertiescoordinator/runtime.propertieshistorical/runtime.propertiesmiddleManager/runtime.propertiesoverlord/runtime.propertiesrouter/runtime.propertiessupervisor/runtime.properties
Each of these files contains several settings, such as the port numbers, hostnames, and database configurations. We must modify these settings according to our system's configuration.
Step 4 - Running Druid
Once the configuration is complete, we can start Druid using the following command:
sudo bin/druid.sh start
This command starts all the Druid services, including the coordinator, overlord, and historical nodes.
To stop the Druid services, we can use the following command:
sudo bin/druid.sh stop
Conclusion
In this tutorial, we have explained how to install and configure Druid on Arch Linux. We have also discussed how to start and stop Druid services. With Druid installed, we can now start building real-time data analysis applications.