Book Image

Learn Apache Mesos

By : Manuj Aggarwal
Book Image

Learn Apache Mesos

By: Manuj Aggarwal

Overview of this book

Apache Mesos is an open source cluster manager that provides efficient resource isolation and sharing across distributed applications or frameworks. This book will help you build a strong foundation of Mesos' capabilities along with practical examples to support the concepts explained throughout the book. Learn Apache Mesos dives straight into how Mesos works. You will be introduced to the distributed system and its challenges and then learn how you can use Mesos and its framework to solve data problems. You will also gain a full understanding of Mesos' internal mechanisms and get equipped to use Mesos and develop applications. Furthermore, this book lets you explore all the steps required to create highly available clusters and build your own Mesos frameworks. You will also cover application deployment and monitoring. By the end of this book, you will have learned how to use Mesos to make full use of machines and how to simplify data center maintenance.
Table of Contents (10 chapters)

Installing Mesos

So, we are all set and ready to get into the core part of the chapter: installing Mesos.

The following section will guide you through exactly how to do this:

  1. To install Mesos, we will first need to add the Mesosphere repository to all our hosts. To do this, start with master1 and use the following path:
sudo rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm

This will automatically download and install the Mesosphere repository. Repeat this step for master2, master3, as well as on the slaves and marathons. With that, we are done adding repositories.

  1. We can validate the addition of repositories by running the following command:
cd /etc/yum.repos.d
ls -rlt

You can see that the Mesosphere repository was added in the following screenshot:

  1. To install Mesos, return back to the master directory using cd, and then run the...