Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to find the zookeeper leader using REST API call

avatar
Expert Contributor

Hi,

To identify the zookeeper leader, I can use the below command in CLI.

$echo stat | nc zk_hostname 2181 | grep Mode
Mode: follower 

Is it possible to achieve this using REST API calls?

Thank you.

Regards,

Sampath

2 REPLIES 2

avatar
Master Mentor

@Sampath Kumar

Have a look at this Github for zookeeper REST API's

HTH

avatar
Master Mentor

@Sampath Kumar

Any updates did this article help you ?