O'Reilly logo

Mastering Mesos by Akhil Das, Dipa Dubhashi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a custom framework on Mesos

As we already know, a Mesos framework is an application running on Mesos. In this module, we will see how we can create our own Mesos framework. For the sake of simplicity, we will create a simple Java application to calculate the value of pi. A Mesos framework consists of the following three components:

  • Driver: This is the piece of code that submits tasks to the framework
  • Executor: This is the piece of code that is launched on the Mesos slave nodes to run the framework's tasks
  • Scheduler: This is the piece of code that registers with the master, asks for resources from it, and runs tasks on the executor

Now, let's take a look at how we can develop each of these components to build a custom Mesos framework in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required