[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16170854#comment-16170854
 ] 

Varun Thacker commented on ZOOKEEPER-1281:
------------------------------------------

Thanks Jon! I hadn't realized that there was a contrib REST module.

I got it to work by  running 


{code}
~/zookeeper-3.4.9/contrib/rest$ java -cp 
"zookeeper-3.4.9-rest.jar:lib/*:conf/:../../zookeeper-3.4.9.jar"  
org.apache.zookeeper.server.jersey.RestMain
{code}

Something worth documenting

> Stat and srvr 4 letter commands are useless on the leader when leaderServes = 
> false
> -----------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1281
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1281
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.3.3
>            Reporter: Daniel Lord
>
> When leaderServes = false the leader responds to the stat/srvr  letter words 
> with simply "this ZooKeeper instance is not currently serving requests".  
> While I agree that is an accurate statement it's not terribly useful for 
> monitoring programs.  Additionally, if members of the ensemble are not 
> currently in the quorum it becomes impossible to tell who is out of the 
> quorum and who is the leader of the quorum.
> I'm not sure if the leader should have a specially formatted response for 
> stat/srvr or if it should simply display less information (no connections for 
> example).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to