Apache Flume is a distributed, reliable, and available system for efficiently collecting, aggregating, and moving large amounts of log data from multiple sources to a centralized data store. In this tutorial, we will learn how to install Flume on Ubuntu Server latest version.
Before we begin, make sure that you have the following prerequisites:
Before installing Flume, it is important to ensure that your system is up-to-date. To do this, run the following command:
sudo apt update && sudo apt upgrade
Flume is built on top of Java, so it is necessary to have Java 1.8 or higher installed on your system. To install Java, run the following command:
sudo apt install openjdk-8-jdk
After installing Java, you can verify the installation by running the following command:
java -version
To install Flume, follow these steps:
Download the latest version of Flume from the official website using the following command:
wget https://archive.apache.org/dist/flume/1.9.0/apache-flume-1.9.0-bin.tar.gz
Extract the downloaded file using the following command:
tar xvf apache-flume-1.9.0-bin.tar.gz
Move the extracted directory to the /usr/local
directory:
sudo mv apache-flume-1.9.0-bin /usr/local/
Set the FLUME_HOME
environment variable in the /etc/environment
file:
echo 'FLUME_HOME="/usr/local/apache-flume-1.9.0-bin"' | sudo tee -a /etc/environment
Reload the environment variables:
source /etc/environment
Add Flume to your system's PATH
:
echo 'export PATH="$PATH:$FLUME_HOME/bin"' | sudo tee -a /etc/profile.d/flume.sh
Reload the PATH
variable:
source /etc/profile.d/flume.sh
To test the installation, run the following command:
flume-ng version
This command should output the version number of Flume that you installed.
Congratulations! You have successfully installed Apache Flume on your Ubuntu Server latest version. You can now use Flume to collect, aggregate, and move data from multiple sources to a centralized data store.
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!