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.
Before we proceed, let's make sure we have everything necessary to install Mesos.
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
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.git
Change the directory to the Mesos source code directory:
cd mesos
Checkout the latest stable release:
git checkout tags/<latest_version_number>
Now compile the code using Maven:
./bootstrap
After the bootstrap script completes, run the following command to build Mesos:
./configure
make
After the build completes, install Mesos using the following command:
sudo make install
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-master
You 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:5050
Now, let's start the Mesos agent. Open another terminal window and run the following command:
mesos-agent --master=127.0.0.1:5050
You 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.
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!