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 Marathon

Marathon is a control system that can be used in Docker or in cgroups containers, and is cluster wide. It is a framework for Apache Mesos that helps you manage tasks through RESTful APIs.

Let's go back to the Marathon tab and follow these steps:

  1. Add a secret to the marathon file:
$ cd /etc/marathon 
  1. Go inside /etc/default and:
$ sudo touch mesos_authentication_secret 
$ sudo vi mesos 
  1. Insert marathon1_secret, save the file, and exit using :wq!
  2. Inform Marathon about the location of the credential file in the marathon1 tab:
$ sudo mkdir conf 
$ sudo cd conf 
$ sudo touch mesos_authentication_secret_file 
$ ll /etc/default/mesos 
$ ll /etc/default/mesos_authentication_secret 
  1. You will get a path, /etc/default/mesos_authentication_secret. Copy this path.
  2. Go to the conf directory:
$ cd conf/  
$ sudo vi authentication_secret_file 
  1. Paste the path that...