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)

Configuring the mesos-master servers

After installation, configuration is a particularly important step, as it forms the basis of the whole Mesos environment.

Following are the steps to follow to configure the mesos-master:

  1. First, let's set up connection information for ZooKeeper with these commands:
cd /etc/mesos
ls -rlt
cat zk

In the development environment, we had only added one mesos-master. We now need more master services, so let's add them. First, open the following file:

sudo vi zk

Now, edit the file by deleting the current entry, and inserting zk://10.0.1.42:2181,10.0..1.203,10.0.2.68:2181/mesos. So, basically, we have added the IP addresses of all three servers, followed by their active ports.

Save your changes and exit the file using :wq!. Repeat this step for all other master servers.

  1. Next, let's perform our ZooKeeper configuration for the master servers...