After installation, configuration is a particularly important step, as it forms the basis of the whole Mesos environment.
Following are the steps to follow to configure the mesos-master:
- First, let's set up connection information for ZooKeeper with these commands:
cd /etc/mesos
ls -rlt
cat zk
In the development environment, we had only added one mesos-master. We now need more master services, so let's add them. First, open the following file:
sudo vi zk
Now, edit the file by deleting the current entry, and inserting zk://10.0.1.42:2181,10.0..1.203,10.0.2.68:2181/mesos. So, basically, we have added the IP addresses of all three servers, followed by their active ports.
Save your changes and exit the file using :wq!. Repeat this step for all other master servers.
- Next, let's perform our ZooKeeper configuration for the master servers...