Installing Mesos on Void Linux
Mesos is a distributed systems kernel, which is designed to abstract resources like CPUs or storage in such a way that it can be used as a resource pool for other applications. In this tutorial, we will install Mesos on Void Linux.
Prerequisites
Before we proceed, let's make sure we have everything necessary to install Mesos.
- Void Linux installed
- Root or superuser access
- Internet connection
Installing Dependencies
Before installing Mesos, we need to install some dependencies, including Git, Java, and Apache Maven.
To install the dependencies, we will use the package manager xbps-install which is available on Void Linux.
Open the terminal and run the following command to update the package list:
xbps-install -Syu
Now, let's install the dependencies using the following command:
xbps-install git java8 apache-maven
Building Mesos
Now that we have installed all the dependencies, let's download and build Mesos.
First, let's clone the Mesos source code from GitHub using the following command:
git clone https://gitbox.apache.org/repos/asf/mesos.gitChange the directory to the Mesos source code directory:
cd mesosCheckout the latest stable release:
git checkout tags/<latest_version_number>Now compile the code using Maven:
./bootstrapAfter the bootstrap script completes, run the following command to build Mesos:
./configure makeAfter the build completes, install Mesos using the following command:
sudo make install
Testing Mesos
So, we have successfully installed Mesos on Void Linux. Let's check if Mesos is running correctly.
To start the Mesos master, run the following command:
mesos-masterYou should see the following message if the Mesos master has started successfully:
I0415 14:02:18.018893 6509 master.cpp:2384] Master started on 127.0.0.1:5050Now, let's start the Mesos agent. Open another terminal window and run the following command:
mesos-agent --master=127.0.0.1:5050You should see the following message if the Mesos agent has started successfully:
I0415 14:03:57.450901 6556 slave.cpp:2668] Got assigned task 1a7d1fcb-93a8-4a43-a50f-26dd2dbe70d3 for framework 1
Congratulations! You have successfully installed Mesos on Void Linux and tested it. You can now start experimenting with Mesos and its features.