- 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 LibGDX Game Development(Second Edition)
- 程序員修煉之道:程序設計入門30講
- 解構產品經理:互聯網產品策劃入門寶典
- Learning C# by Developing Games with Unity 2020
- Debian 7:System Administration Best Practices
- Visual C++數字圖像模式識別技術詳解
- 你不知道的JavaScript(中卷)
- Python從入門到精通
- 并行編程方法與優化實踐
- Java EE 7 with GlassFish 4 Application Server
- 進入IT企業必讀的324個Java面試題
- The Statistics and Calculus with Python Workshop
- OpenCV 3.0 Computer Vision with Java
- JavaWeb從入門到精通(視頻實戰版)
- Splunk Essentials