- Apache Mesos Cookbook
- David Blomquist Tomasz Janiszewski
- 213字
- 2021-07-15 17:04:29
Configuring Mesos agents with ZooKeeper
- Edit /etc/mesos/zk and add the same line that we used on the Mesos masters on all the Mesos agents. Edit as appropriate using the IP addresses of your Mesos masters. Using our example configuration from earlier:
$ echo 'zk://10.0.0.11:2181,10.0.0.32:2181,10.0.0.25:2181/mesos' | sudo tee /etc/mesos/zk
- Create IP and hostname files for each of the Mesos agents (slaves), changing the values for IP and hostname on each agent server:
$ echo "10.10.0.73" | sudo tee /etc/mesos-slave/ip
$ echo "ubuntu7073" | sudo tee /etc/mesos-slave/hostname
- Disable ZooKeeper and Mesos master services:
-
- Ubuntu 14.04:
$ sudo service mesos-master stop
$ echo manual | sudo tee /etc/init/mesos-master.override
$ sudo service zookeeper stop
$ echo manual | sudo tee /etc/init/zookeeper.override
-
- CentOS7/RHEL7/Ubuntu 16.04:
$ sudo systemctl stop mesos-master
$ sudo systemctl disable mesos-master
$ sudo systemctl stop zookeeper
$ sudo systemctl disable zookeeper
- CentOS7/RHEL7/Ubuntu 16.04:
- Start or restart Mesos agents:
-
- Ubuntu 14.04:
$ sudo service mesos-slave restart
-
- CentOS7/RHEL7/Ubuntu 16.04:
$ sudo systemctl restart mesos-slave
- CentOS7/RHEL7/Ubuntu 16.04:
- Repeat steps 1-4 on each Mesos agent server.
- Validate that the agents are registered with the cluster by again pointing your browser to port 5050 on any one of the master servers. Then click on the Agents tab on the bar at the top of the Mesos UI. You should see the newly registered agents:

推薦閱讀
- Learning Neo4j
- Designing Machine Learning Systems with Python
- 華為HMS生態(tài)與應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)
- Visual C++串口通信技術(shù)詳解(第2版)
- Web程序設(shè)計(jì)(第二版)
- Yocto for Raspberry Pi
- Linux Device Drivers Development
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Java EE企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程(Spring+Spring MVC+MyBatis)
- SQL Server 2008 R2數(shù)據(jù)庫(kù)技術(shù)及應(yīng)用(第3版)
- Mockito Essentials
- Mastering Android Studio 3
- 深度學(xué)習(xí)入門(mén):基于Python的理論與實(shí)現(xiàn)
- Mapping with ArcGIS Pro
- Mastering Clojure