- 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:

推薦閱讀
- Java程序設計(慕課版)
- Intel Galileo Essentials
- Raspberry Pi Networking Cookbook(Second Edition)
- FFmpeg入門詳解:音視頻流媒體播放器原理及應用
- Java Web及其框架技術
- Julia機器學習核心編程:人人可用的高性能科學計算
- HTML5 and CSS3 Transition,Transformation,and Animation
- Python機器學習編程與實戰
- Learning Data Mining with R
- SQL基礎教程(第2版)
- MySQL入門很輕松(微課超值版)
- 智能手機故障檢測與維修從入門到精通
- Hadoop 2.X HDFS源碼剖析
- 物聯網系統架構設計與邊緣計算(原書第2版)
- 實戰Python網絡爬蟲