I am new to Mesos and I have built a mesos cluster of three CentOS 7 nodes (all three nodes acting as masters and slaves) in a local hypervisor. The nodes are named mesos1, mesos2 and mesos3
I have this running with Zookeeper marathon and chronos. I was wondering how I can check who is the acting mesos master at any given time, when I came across this post!
I also found out that I could find the leading master of mesos by adding /redirect to the endpoint.
So when I tried that, Mesos UI at 5050 pport redirected me to the node mesos2.
However, when I tried to find the zookeeper leader using this command: /opt/zookeeper/bin/zkServer.sh status I got the following response that the leader was mesos3
[root@mesos3 ~]# /opt/zookeeper/bin/zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Mode: leader
I am confused: Shouldn't the mesos master be the node that is indicated as leader by zookeeper?
Any help is greatly appreciated