Druid is a distributed, column-oriented, open source datastore, designed to handle large amounts of data and queries at a fast pace. In this tutorial, I will be guiding you on how to install and configure Druid on EndeavourOS latest.
Prerequisites:
Before installing Druid, we will need to install Java JDK 8 or higher on EndeavourOS. You can check if Java is already installed on your system by running the following command in the terminal:
java -version
If Java is not installed, you can install it by running the following command:
sudo pacman -S jdk8-openjdk
This command will install the OpenJDK 8 version. If you prefer to install a different version of Java, you can search for it using the following command:
sudo pacman -Ss jdk
Once the installation is complete, you can check if Java is installed by running the following command:
java -version
To install Druid, we will need to add the Druid repository to our package manager. To do this, we will be adding the following lines in the /etc/pacman.conf
file:
[druid]
Server = http://static.druid.io/artifacts/releases/druid-0.21.0-bin.tar.gz
SigLevel = Never
Save the file and run the following command to refresh the package manager:
sudo pacman -Syu
To install Druid, run the following command:
sudo pacman -S druid
Once the installation is completed, we will need to configure Druid. The configuration files are located in the /etc/druid
directory. The most important configuration file is the common.runtime.properties
file. We will need to modify this file to set the properties for Druid.
sudo nano /etc/druid/common.runtime.properties
First, we will set the druid.host
property to the IP address of our machine.
druid.host = <your_ip_here>
Next, we will set the druid.service
and druid.port
properties.
druid.service = druid/overlord
druid.port = 8090
We will also set the druid.zk.service.host
and druid.zk.paths
properties to connect to ZooKeeper.
druid.zk.service.host = localhost
druid.zk.paths = /druid/discovery
Finally, we will set the druid.metadata.storage
and druid.metadata.storage.connector.connectURI
properties to point to our metadata storage.
druid.metadata.storage.type = derby
druid.metadata.storage.connector.connectURI = jdbc:derby:/var/druid/metadata.db;create=true
Save the file and exit.
To start Druid, run the following command:
sudo systemctl start druid
You can check the status of Druid by running the following command:
sudo systemctl status druid
If everything is working correctly, you should see that Druid is active and running.
In this tutorial, we have covered how to install and configure Druid on EndeavourOS latest. Now, you can start using Druid to handle large amounts of data and queries at a fast pace.
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!