apache mesos on amazon ec2

How To Set Up Mesos Cluster on Amazon EC2

Mesos is a cluster manager for various applications like Hadoop, spark, docker etc..You can manage clusters for any application using Mesos. To know more about the architecture and design of Mesos visit Mesos websites.

It is used by many big organizations like twitter for managing their fleet of servers in cluster mode.

Set Up Mesos Cluster on Amazon EC2

This guide will help you to set up a Mesos cluster with one master and multiple slaves. In this, I am using t2.micro instances for setting up Mesos master and slaves.

SettingĀ Up Mesos Master

1. Update the server

2. Add the necessary repositories.

3. Install oracle java8 as java 8 is a dependency for marathon.

4. Install Mesos using the following command.

5. Open /etc/zookeeper/conf/myid and set any number between 1-255. I am setting the master id as 1.

6. Open /etc/mesos/zk and replace localhost with the masters IP address.

For example,

7. Restart the master service using the following command.

8. Start the marathon service using the following command.

9. Now you can access the marathon and Mesos UI on the following URLs.

Setting Up Slave

1. add the required repositories shown in step 1 of the master setup.

2. Install Mesos

3. Edit /etc/mesos/zk file and replace localhost with the masters IP address.

3. Stop and disable zookeeper.

4. Now, Start the slave service.

Now, if you navigate to slaves option in the Mesos dashboard, you will see a new entry for the slave you have configured.

1 Comment

  • hitesh

    The article was very useful, but when ever i redo this process i just dont get the marathon UI displayed.
    curl :8080 gives connection refused

Leave a Reply


Magento On Ec2

Magento is an open source content management system for e-commerce based web applications. It is a popular…

Read more

 Plesk:Plesk is a control panel solution for system administrators and webmasters. plesk is a product of…

Read more

There is a high demand for cloud computing architects, developers and administrators. Amazon announced its…

Read more

Have some content ideas! We will help you publish it!


Cloud Computing Tutorial Blog