In order to add the mesosphere repository, run and install a command, as shown:
After this, install ZooKeeper with yum by running the sudo yum install mesosphere-zookeeper command. This will install ZooKeeper on CentOS:
We can see the mesosphere-zookeeper package with version 3.4.6 from the mesosphere repository, and the size is 2.8 MB.
This screenshot shows that the package has been installed:
Now, install the Mesos master and Mesos slave, as shown:
We can see the mesos package version 1.5 from the mesosphere repository, and the size is 76 MB.
Hence, this will download and install Mesos, which will comprise the Mesos master and slave service, as seen here: