Book Image

Apache Mesos Essentials

By : Dharmesh Kakadia
Book Image

Apache Mesos Essentials

By: Dharmesh Kakadia

Overview of this book

<p>Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks. It allows developers to concurrently run the likes of Hadoop, Spark, Storm, and other applications on a dynamically shared pool of nodes. With Mesos, you have the power to manage a wide range of resources in a multi-tenant environment.</p> <p>Starting with the basics, this book will give you an insight into all the features that Mesos has to offer. You will first learn how to set up Mesos in various environments from data centers to the cloud. You will then learn how to implement self-managed Platform as a Service environment with Mesos using various service schedulers, such as Chronos, Aurora, and Marathon. You will then delve into the depths of Mesos fundamentals and learn how to build distributed applications using Mesos primitives.</p> <p>Finally, you will round things off by covering the operational aspects of Mesos including logging, monitoring, high availability, and recovery.</p>
Table of Contents (15 chapters)
Apache Mesos Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Hadoop on Mesos


Hadoop on Mesos (https://github.com/mesos/hadoop) relies on the extension to Mesos, such as the Mesos executor to execute TaskTrackers and Hadoop JobTracker Mesos Scheduler to run Hadoop on a Mesos framework. We will run Hadoop 1.x on Mesos:

  1. Install and run Mesos by following the instructions in Chapter 1, Running Mesos.

  2. We need to compile Hadoop on the Mesos library. Hadoop on Mesos uses Maven to manage dependencies, which we will need to install along with Java and Git:

    ubuntu@master:~ $ sudo apt-get install maven openjdk-7-jdk git
  3. Let's clone Hadoop on the Mesos source code from https://github.com/mesos/hadoop, and navigate to it using the following command:

    ubuntu@master:~ $ git clone https://github.com/mesos/hadoop/
    ubuntu@master:~ $ cd hadoop
  4. Build Hadoop on the Mesos binaries from the code using the following command. By default, it will build the latest version of Mesos and Hadoop. If required, we can adjust the versions in the pom.xml file:

    ubuntu@master:~ $...