The following article will help us installing Apache Mesos on a 2 machine setup. The setup consists of a Master and a slave. Let us start the installation on a plain vannila Ubuntu 14.04 server.
Initially let us fulfill the per-requisites of Apache Mesos by upgrading the packages and installing Open-JDK, autoconf and libtool.
apt-get update && apt-get upgrade apt-get install -y openjdk-7-jdk apt-get install -y autoconf libtool
The following configurations are to be done on both machines:
We would need to download the Mesos files available in compressed format.
Now let us extract the file onto a folder
tar -xzvf mesos-0.22.1.tar.gz
Let us compile the packages by performing the following steps.
cd mesos-0.22.1 mkdir build cd build ../configure make
Once these steps are performed, we can start the service on the Master.
./bin/mesos-master.sh --ip=0.0.0.0 --work_dir=/var/lib/mesos
Then we can start the service on the Slave and point the master, in the following command.