How to Install Druid on FreeBSD Latest
Druid is an open-source data store designed for real-time analytics. In this tutorial, we will learn how to install Druid on FreeBSD Latest.
Prerequisites
Before we begin, make sure your FreeBSD system is up-to-date using the following command:
pkg update && pkg upgrade
Step 1: Install Java
Druid requires Java 8 or higher to run. To install Java on FreeBSD, use the following command:
pkg install openjdk8
This will install the necessary Java Runtime Environment (JRE) on your system.
Step 2: Install Apache Maven
Next, we need to install Apache Maven to build the Druid package. To do so, type the following command:
pkg install maven
Step 3: Download and Build Druid
Now, download the latest version of Druid using the following command:
wget https://github.com/apache/druid/archive/apache-druid-0.20.0-incubating.tar.gz
Once the download is complete, extract the compressed file using the following command:
tar -xzvf apache-druid-0.20.0-incubating.tar.gz
Next, navigate to the extracted Druid directory:
cd druid-apache-druid-0.20.0-incubating/
Use the following command to build the Druid package:
mvn clean install -DskipTests=true
This will create a Druid package inside the distribution/target directory.
Step 4: Configure Druid
Navigate into the conf directory:
cd distribution/target/druid-0.20.0-incubating/conf/
Here, you will find several configuration files. Modify the druid.common.runtime.properties and druid.router.properties files to suit your requirements by specifying the database details and other settings.
Step 5: Start Druid
Finally, start Druid by executing the following command:
./bin/start-micro-quickstart
This will start the Druid services and the Druid console.
Conclusion
In this tutorial, we learned how to install Druid on FreeBSD Latest. We also saw how to configure Druid and started its services. Now, you can use Druid to store and analyze data with ease.