How to Install Druid on Fedora CoreOS
This tutorial will guide you through the process of installing Druid, an open-source data store and analytics platform, on Fedora CoreOS.
Prerequisites
Before you begin with the installation process, you need to have the following prerequisites in place:
- A Virtual Machine or a physical server running Fedora CoreOS Latest
- A user account with sudo privileges on the system.
Step 1 - Install Java
Druid requires Java 8 or higher to be installed. Fedora CoreOS comes with OpenJDK pre-installed, but we will install Oracle's Java for this tutorial.
First, update the system packages of Fedora CoreOS to the latest version:
sudo dnf update -y
Then, install the Oracle Java Development Kit (JDK) 11 using the following command:
sudo dnf install -y oracle-jdk11-installer
You can verify the installation by checking the installed Java version:
java -version
The output should display the installed Java version.
Step 2 - Download Druid
You can download the latest version of Druid from the official website or using the following command:
wget https://downloads.apache.org/druid/0.20.0/apache-druid-0.20.0-bin.tar.gz
Step 3 - Extract Druid
Once the download is complete, extract the downloaded package using the following command:
tar -xzf apache-druid-0.20.0-bin.tar.gz
Step 4 - Configure Druid
Druid needs to be configured before it can be used. Create a new Druid configuration file in the conf directory of the extracted Druid package, using the following command:
cd apache-druid-0.20.0
cp conf/druid/_common/common.runtime.properties conf/druid/_common/common.runtime.properties.original
cp conf/druid/_common/common.runtime.properties.example conf/druid/_common/common.runtime.properties
Step 5 - Start Druid Services
Now that you have Druid installed and configured, you can start the necessary services to run Druid.
Run the following command to start the coordinator, overlord, and MiddleManager services:
./bin/start-micro-quickstart
You can also run the following command to start Druid as a single node cluster:
./bin/start-druid
Step 6 - Verify Druid Installation
To verify that Druid is installed and running correctly, open a web browser and visit the following URLs:
- http://localhost:8888/status for the Druid cluster status page.
- http://localhost:8888/console.html for the Druid web console.
If you are running Druid on a remote server or Virtual Machine, replace localhost with the IP address or domain name of the server.
Conclusion
In this tutorial, you learned how to install Druid on Fedora CoreOS and start the necessary services to run Druid. You can now start using Druid to store and analyze data.