简体   繁体   English

使用相同的zookeeper为Kafka和Mesos发行

[英]Issue using same zookeeper for Kafka and Mesos

I am trying to setup Kafka and Spark with Mesos on our 8 nodes cluster as following but having issues launching/starting Mesos Salve using zookeeper endpoint of Mesos masters. 我试图在我们的8节点集群上设置Kafka和Spark与Mesos如下,但是使用Mesos主机的zookeeper端点启动/启动Mesos Salve时出现问题。

1) Install and setup Zookeeper on 3 nodes (server00,server01,server02) (through $KAFKA_HOME/config/zookeeper.properties ) 1)在3个节点(server00,server01,server02)上安装和设置Zookeeper(通过$ KAFKA_HOME / config / zookeeper.properties

2) Install Kafka brokers on all 8 nodes (and point it to 3 zookeepers by setting following property in its $KAFKA_HOME/config/server.properties ) 2)在所有8个节点上安装Kafka代理(并通过在其$ KAFKA_HOME / config / server.properties中设置以下属性将其指向3个动物园管理员)

zookeeper.connect=server00:2181,server01:2181,server02:2181

3) Install Mesos master on 3 nodes (server00,server01,server02) and update /etc/mesos/zk with following line: 3)在3个节点(server00,server01,server02)上安装Mesos master,并使用以下行更新/ etc / mesos / zk

zk://server00:2181,server01:2181,server02:2181/mesos

4) Install Mesos slaves on all 8 nodes. 4)在所有8个节点上安装Mesos从站。

5) Edit /etc/mesos/zk file on all other servers to have following line. 5)在所有其他服务器上编辑/ etc / mesos / zk文件以具有以下行。

zk://server00:2181,server01:2181,server02:2181/mesos

6) Start Mesos master on all 3 master servers as below (verified that all Mesos master are running and available by launching http://server00:5050/#/ , http://server01:5050/#/ , http://server02:5050/#/ 6)在所有3个主服务器上启动Mesos master,如下所示(通过启动http:// server00:5050 /#/http:// server01:5050 /#/http://验证所有Mesos主服务器正在运行并可用) Server02上:5050 /#/

sudo /usr/sbin/mesos-master --cluster=server_mesos_cluster --log_dir=/var/log/mesos --work_dir=/var/lib/mesos

7) Start Mesos slave on all 8 servers. 7)在所有8台服务器上启动Mesos slave。 Example of launching this on server00: 在server00上启动它的示例:

sudo /usr/sbin/mesos-slave --work_dir=/var/lib/mesos --master=zk://server00:2181,server01:2181,server02:2181/mesos --ip=9.1.69.150 But above doesn't launch slave/agent. sudo /usr/sbin/mesos-slave --work_dir=/var/lib/mesos --master=zk://server00:2181,server01:2181,server02:2181/mesos --ip=9.1.69.150但是上面没有启动奴隶/代理。

But following command does which makes me think that perhaps master mesos are not getting registered with zookeepers. 但是下面的命令确实让我觉得也许master masos没有注册到zookeepers。

sudo /usr/sbin/mesos-slave --work_dir=/var/lib/mesos --master=server00:5050 --ip=9.1.69.150 

Could anyone shed any light as to whether 1) My configuration is not right or 2) If I have to setup separate zookeepers for Mesos cluster? 任何人都可以了解1)我的配置是否正确或2)如果我必须为Mesos集群设置单独的动物园管理员? 3) How can I verify if Mesos masters are getting registered with zookeeper? 3)如何验证Mesos主人是否已在zookeeper注册?

Once this setup is working, I intend to run Spark on all 8 nodes. 一旦这个设置工作,我打算在所有8个节点上运行Spark。

On Ubuntu, at least, /etc/mesos/zk , and other config files under /etc/mesos are only read by /usr/bin/mesos-init-wrapper . 在Ubuntu上, /etc/mesos/zk/etc/mesos下的其他配置文件只能由/usr/bin/mesos-init-wrapper读取。 Thus your master isn't seeing your zk config. 因此你的主人没有看到你的zk配置。

You'll either need to launch it with the init script ( service mesos-master start ), run the wrapper manually, or use the -zk option to mesos-master : 您需要使用init脚本( service mesos-master start )启动它,手动运行包装器,或使用mesos-master-zk选项:

sudo /usr/sbin/mesos-master --cluster=server_mesos_cluster --log_dir=/var/log/mesos --work_dir=/var/lib/mesos --zk=zk://server00:2181,server01:2181,server02:2181/mesos

` `

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM