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.
Before we install Druid, we must meet the following requirements:
Druid requires Java 8 or higher to run. We can install Java using the following command:
sudo pacman -S jdk8-openjdk
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
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.properties
zookeeper.properties
broker/runtime.properties
coordinator/runtime.properties
historical/runtime.properties
middleManager/runtime.properties
overlord/runtime.properties
router/runtime.properties
supervisor/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.
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
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.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!