mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mclain, Warren" <>
Subject RE: Get leading master from zookeeper
Date Tue, 06 Mar 2018 12:29:07 GMT
Does this help ????

cat <your program name>
echo "Checking <one of the zk’s.>"
ssh <host> 'echo stat | nc localhost 2181 | grep Mode'
echo "Checking <host>"
ssh <host> 'echo stat | nc localhost 2181 | grep Mode'
echo "Checking <host>"
ssh <host> 'echo stat | nc localhost 2181 | grep Mode'

typically this is run from the bootstrap that has ssh keys but you get the idea. The 3 hosts
are the zookeepers

Please do pass this out to the world.

Warren McLain
Enterprise Engineering Services
IEI Foundation Engineering - Compute, Optum Technology Office: 763-744-3107

From: Ajay V []
Sent: Monday, March 05, 2018 11:55 PM
Subject: Get leading master from zookeeper


Is there a write up somewhere that I may have missed finding that talks about how to find
the leading master given the zookeeper url? I can find that there are json.info_.. MasterInfo
jsons available in zk, but how can I translate this to figure out the leading master at any
given point in time?


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
View raw message