Cluster Manager · Mesos

Setting up Apache Mesos Cluster using 2 machines – Ubuntu 14.04

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.

wget http://www.apache.org/dist/mesos/0.22.1/mesos-0.22.1.tar.gz

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.

./bin/mesos-slave.sh --master=180.17.1.5:5050
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s