List of Listings

 

Chapter 2. Managing datacenter resources with Mesos

Listing 2.1. Spark job output when running on a Mesos cluster

Chapter 3. Setting up Mesos

Listing 3.1. Basic ZooKeeper configuration

Chapter 7. Deploying applications with Marathon

Listing 7.1. Deploying the Nginx Docker image in Marathon

Listing 7.2. Examples of Marathon application health checks

Listing 7.3. Deploying the Keys and Values app in Marathon

Chapter 8. Managing scheduled tasks with Chronos

Listing 8.1. A simple sleep job in Chronos

Listing 8.2. Running a script within a Docker container

Listing 8.3. A Chronos job to download War and Peace

Listing 8.4. Running a Spark job to count the words in War and Peace

Listing 8.5. Loading the results and outputting the top 20 words

Chapter 9. Deploying applications and managing scheduled tasks with Aurora

Listing 9.1. Example Aurora scheduler startup script

Listing 9.2. Aurora configuration for the OutputEnv application

Listing 9.3. Launching a Docker container by using the Docker CLI

Listing 9.4. Creating a Cron job

Listing 9.5. Creating a Cron job that runs in a Docker container

Chapter 10. Developing a framework

Listing 10.1. Developing a minimal Mesos scheduler

Listing 10.2. Connecting the scheduler to Mesos with the scheduler driver

Listing 10.3. Developing a minimal Mesos executor