O'Reilly logo

Apache Mesos Cookbook by Tomasz Janiszewski, David Blomquist

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

Configuring Mesos masters with ZooKeeper

  1. You will find the ZooKeeper directory in the 3rdparty subdirectory of the Mesos source directory. We recommend copying this directory to the location that you would like to run ZooKeeper, such as /usr/local or /opt, and then change into that directory. For example:
$ sudo cp -a ~/mesos-1.1.0/build/3rdparty/zookeeper-3.4.8 /usr/local/$ sudo chown -R root.root /usr/local/zookeeper-3.4.8/$ cd /usr/local/zookeeper-3.4.8/
  1. Copy the zoo_sample.cfg file in the conf subdirectory of the zookeeper directory and create a zoo.cfg file in the same directory:
        $ sudo cp conf/zoo_sample.cfg conf/zoo.cfg
  1. The source installation uses /var/lib/zookeeper/ as the location for the myid file. Create the /var/lib/zookeeper ...

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