This tutorial will guide you through the process of installing Druid, an open-source distributed data store, on Alpine Linux Latest.
Before starting the installation process, make sure the following prerequisites are met:
Druid requires Java to be installed on your system.
sudo apk add openjdk8
This command will install OpenJDK 8, which is the recommended version for Druid.
wget https://downloads.apache.org/druid/0.20.2/apache-druid-0.20.2-bin.tar.gz
sudo tar -zxvf apache-druid-0.20.2-bin.tar.gz -C /usr/local/
This command will download and extract Apache Druid version 0.20.2 to /usr/local/
.
cd /usr/local/apache-druid-0.20.2/
druid-env.sh
file.sudo cp conf/druid/_common/conf/druid-env.sh conf/druid/_common/conf/druid-env.sh.orig
sudo sed -i 's|-Xmx256m|-Xmx512m|' conf/druid/_common/conf/druid-env.sh
sudo sed -i 's|JAVA_HOME=.*|JAVA_HOME=/usr/lib/jvm/default-jvm|' conf/druid/_common/conf/druid-env.sh
This command will configure the druid-env.sh
file to:
256m
to 512m
.JAVA_HOME
environment variable to the location of the installed Java.cd /usr/local/apache-druid-0.20.2/
sudo bin/start-micro-quickstart
This command will start Druid in a single-node configuration for testing.
You have successfully installed Druid on Alpine Linux Latest. You can now explore Druid's features and capabilities by connecting to the Druid console at http://localhost:8888/console.html. To stop Druid, simply run bin/stop-micro-quickstart
in the Druid installation directory.
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!