Skip to Main Content
Learn Apache Mesos
book

Learn Apache Mesos

by Manuj Aggarwal
October 2018
Intermediate to advanced content levelIntermediate to advanced
248 pages
4h 46m
English
Packt Publishing
Content preview from Learn Apache Mesos

How to do it...

To create an attribute, we need to place the file in /etc/mesos-slave/attributes.

The following command will create this directory:

mkdir -p, and /etc/mesos-slave/attributes

The filename will be the attribute label and the content will be a value. To create the os:centos attribute, simply create a file with the following contents. We are going to create an attributes file with the following content: os:centos5, centos6, and centos7, respectively, on three slave agents.

Let's define the attributes by creating an attributes file inside /etc/mesos-slave. We already have the resources with us, so now, we will create our attributes file using the following command:

sudo vi attributes

In this file, we will define slave1 as centos5 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mesos in Action

Mesos in Action

Roger Ignazio
SELinux

SELinux

Bill McCarty
Linux: Powerful Server Administration

Linux: Powerful Server Administration

Uday Sawant, Oliver Pelz, Jonathan Hobson, William Leemans
Apache Cookbook, 2nd Edition

Apache Cookbook, 2nd Edition

Rich Bowen, Ken Coar

Publisher Resources

ISBN: 9781789137385Supplemental Content