官术网_书友最值得收藏!

  • Apache Mesos Cookbook
  • David Blomquist Tomasz Janiszewski
  • 213字
  • 2021-07-15 17:04:29

Configuring Mesos agents with ZooKeeper

  1. 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
  1. 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
  1. 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
  1. Start or restart Mesos agents:
    • Ubuntu 14.04:
$ sudo service mesos-slave restart
    • CentOS7/RHEL7/Ubuntu 16.04:
      $ sudo systemctl restart mesos-slave
      
  1. Repeat steps 1-4 on each Mesos agent server.
  2. 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:
主站蜘蛛池模板: 陵川县| 大姚县| 宁国市| 嵊泗县| 昌宁县| 长宁区| 丹凤县| 石城县| 纳雍县| 法库县| 边坝县| 阿拉善左旗| 锡林郭勒盟| 马山县| 稷山县| 成武县| 雅江县| 石嘴山市| 临城县| 泰来县| 德清县| 新巴尔虎右旗| 汝阳县| 焉耆| 夏河县| 邯郸市| 咸阳市| 剑阁县| 彭州市| 张家界市| 腾冲县| 衡东县| 乐安县| 多伦县| 星座| 玉树县| 确山县| 柘荣县| 高台县| 宜宾市| 绥芬河市|