Re: Get leading master from zookeeper

2018-03-06 Thread Ajay V
Oh great. This should work. Thank you for pointing this out :) Regards, Ajay On Tue, Mar 6, 2018 at 8:53 AM, Zhitao Li wrote: > Mesos implemented the official ZK election recipe > , > so you should

Re: Get leading master from zookeeper

2018-03-06 Thread Dan Leary
Don't know what the official recommendation is or if there is one. But what I currently do is deserialize the MasterInfos from zk, then use the Operator API to attempt a GET_MASTER from each one until I get an answer. Relies on the "json.info" constant defined in src/master/constants.hpp and the

Re: Get leading master from zookeeper

2018-03-06 Thread Zhitao Li
Mesos implemented the official ZK election recipe , so you should expect a list of ephemeral ZNones under your election path (often `mesos` but up to your config). The one with lowest suffix sequence number has the content

RE: Get leading master from zookeeper

2018-03-06 Thread Mclain, Warren
Does this help cat #!/bin/bash echo "Checking " ssh 'echo stat | nc localhost 2181 | grep Mode' echo "Checking " ssh 'echo stat | nc localhost 2181 | grep Mode' echo "Checking " ssh 'echo stat | nc localhost 2181 | grep Mode' typically this is run from the bootstrap that has ssh keys