node listzookeepers

Returns the hostnames of the nodes in the cluster that are running the zookeeper service.

Syntax

CLI
maprcli node listzookeepers
    [ -cluster <cluster name> ]
    [ -cldb  <cldb hostname|ip:port> ]
REST
http[s]://<host>:<port>/rest/node/listzookeepers?<parameters> 

Parameters

Parameter

Description

cluster The name of the cluster for which to return the list of zookeeper node hostnames.
cldb The hostname or IP address and port number of a valid CLDB node. The other CLDB nodes and zookeeper nodes can be discovered from this node.

Examples

Return the list of zookeeper nodes for the cluster my.cluster.com

If you know that the CLDB service is running on a node with hostname host1, you can enter:

CLI
maprcli node listzookeepers -cluster my.cluster.com -cldb host1
REST
https://r1n1.sj.us:8443/rest/node/listzookeepers?cluster=my.cluster.com&cldb=host1