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 Docker

All of our applications require containers to run, so we will use a Docker container to enable them to run.

These are few steps that will help us do that:

  1. Add the Docker repository as follows:
sudo yum- config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

You can see the path to where the Docker repository is saved, as follows:

  1. Install Docker with the following command (we're using the Community Edition of Docker here):
sudo yum install docker-ce

We are installing Docker version 17.12.0. We have now installed the Docker containers—repeat the same steps for slave2 and slave3.

  1. Next, start the service with the following command:
sudo service docker start
  1. Now let's check the status:
sudo service docker status

You can also check the Docker information with this command:

sudo service docker info

And, with that...