In this recipe, we will be installing Mesos
.rpm packages from the Mesosphere repositories using
Your CentOS 7 or RHEL 7 operating system should be patched to the most current patch level using
yum prior to installing the Mesosphere packages.
- First, add the Mesosphere repository:
$ sudo rpm -Uvh http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
- And now, install Mesos and ZooKeeper:
$ sudo yum -y install mesos mesosphere-zookeeper
- At this point, you can start Mesos to do some basic testing. To start the Mesos master and agent (slave) daemons, execute the following:
$ sudo service mesos-master start$ sudo service mesos-slave start
- To validate the Mesos installation, open a browser and point it to
<ipaddress>with the actual address of the host with the new Mesos installation.
The Mesosphere packages provide the software required to run Mesos. Next, you will configure ZooKeeper, which is covered in Chapter 2, Implementing High Availability with Apache ZooKeeper.
If you prefer to build and install Mesos from source code on RHEL 7 or CentOS 7, you can find installation instructions for CentOS 7 on the mesos.apache.org website. We do not cover installing Mesos source code on RHEL7 or CentOS 7 in this book due to dependencies that require packages from multiple third-party repositories.