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.

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.

  1. First, let's clone the Mesos source code from GitHub using the following command:

    git clone https://gitbox.apache.org/repos/asf/mesos.git
    
  2. Change the directory to the Mesos source code directory:

    cd mesos
    
  3. Checkout the latest stable release:

    git checkout tags/<latest_version_number>
    
  4. Now compile the code using Maven:

    ./bootstrap
    
  5. After the bootstrap script completes, run the following command to build Mesos:

    ./configure
    make
    
  6. After 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.

  1. 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
    
  2. 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!