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)

Changing hostnames on CentOS

To successfully install Mesos, we need to change the hostname for all of the components, as we want them all to have unique and simple hostnames, so they can seamlessly interact with each other and the system. This is similar to using DNS names instead of IP addresses. Hostnames of components are generally a combination of IP addresses and paths to EC2 servers. So, let's see how we can make simpler hostnames.

After logging in to AWS, go on to the master1 tab. We will check our current hostname, before moving on to changing it. To get started, run the following command:

sudo hostname ctl

Subsequently, you will see your current hostname, which will be a combination of your internal IP address and EC2 paths.

To change the hostname, just key in the following command:

sudo hostnamectl set-hostname --static mesos-master1

Here, mesos-master1 is...