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 ZooKeeper

Perform the following steps to configure ZooKeeper:

  1. Type cd /etc /mesos.
  2. Open the vi zk file. The following screenshot shows the default Mesos definition. This is the default ZooKeeper information. The line starts with zk and ends with /mesos, and in between, we will have the IP address and the ZooKeeper port:

  1. Replace this localhost with the host IP address by typing ifconfig in order to get the IP. As we have a standalone server, we will use the IP address that is highlighted here:
  1. Go to cd /etc /mesos and run sudo vi zk to replace the IP.
  2. Save the file. This completes the ZooKeeper connection information for Mesos.
  3. Map the unique ID by typing var/lib/zookeeper and cat myid.
  4. It has defined 1. As we have a standalone system, we will keep ID 1 for this server only.
If you don't have this myid file, you need to create it by typing myid, and inside...