Mesos+Zookeeper+Marathon+Docker问题,求大家帮我看下!


首先环境如下:

cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

getenforce

Disabled
所有环境都关闭了selinux以及防火墙。

zookeeper选举状态,如下:

/usr/local/zookeeper/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Mode: leader

192.168.191.151

/usr/local/zookeeper/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Mode: follower
192.168.191.152

/usr/local/zookeeper/bin/zkServer.sh status

ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Mode: follower
192.168.191.153
问题1:
选举出来的应该是192.168.191.151才对,而这里确实192.168.191.153,比较疑惑?求大神们解答
QQ截图20160320183547.png


问题2:
框架这里为什么不能显示IP呢,这个localhost指的是什么鬼?
QQ截图20160320183617.png


QQ截图20160320183653.png
已邀请:

lshang

赞同来自:


设置下hostname和hosts文件试试?
例如
hostname: master-1
hosts: master-ip master-1.localdomain master-1

徐磊 - BlackOps@Qunar

赞同来自:


晕!Mesos的leader和zk的leader根本就不是一个概念好么。Mesos的master利用ZK选举leader,注意这个leader是Mesos master 集群的leader,跟zk的leader是一点关系没有的!

另外一个框架的问题,请看官方文档的--hostname配置:

--hostname (Optional. Default: hostname of machine): The advertised hostname that is used for the communication with the mesos master. The value is also stored in the persistent store so another standby host can redirect to the elected leader. Note: Default is determined by InetAddress.getLocalHost.

zoues - 中移苏研 个人站:www.zoues.com

赞同来自:


mesos-master起来的时候需要指定hostname ,这个hostname指定ip就可以了

要回复问题请先登录注册