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 fact that MasterInfos are serialized there. Works in 1.5.0 anyway.
-Dan On Tue, Mar 6, 2018 at 12:54 AM, Ajay V <ajayv...@gmail.com> wrote: > Hello, > > 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? > > Regards, > Ajay >