Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

How to find the zookeeper leader using REST API call

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

Mentor

@Sampath Kumar

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

HTH

Mentor

@Sampath Kumar

Any updates did this article help you ?