node listcldbzks
Returns the hostnames of the nodes in the cluster that are running the CLDB service and the IP addresses and port numbers for the nodes in the cluster that are running the ZooKeeper service.
Syntax
- CLI
-
maprcli node listcldbzks [ -cluster <cluster name> ] [ -cldb <cldb hostname|ip:port> ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/node/listcldbzks[?<parameters>]
Parameters
Parameter |
Description |
---|---|
|
The name of the cluster for which to return the CLDB and ZooKeeper information. |
|
The hostname or IP address and port number of a CLDB node. |
Examples
Return CLDB and ZooKeeper node information for the cluster my.cluster.com:
maprcli node listcldbzks -cluster my.cluster.com
{
"timestamp":1529445399193,
"timeofday":"2018-06-19 02:56:39.193 GMT-0700 PM",
"status":"OK",
"total":1,
"data":[
{
"CLDBs":"in111-22.qa.lab,in111-24.qa.lab,in111-21.qa.lab",
"Zookeepers":"in111-21.qa.lab:5181,in111-22.qa.lab:5181,in111-24.qa.lab:5181"
}
]
}
# curl -k -X GET 'https://abc.sj.us:8443/rest/node/listcldbzks?cluster=my.cluster.com' --user mapr:mapr
{"timestamp":1529445324540,"timeofday":"2018-06-19 02:55:24.540 GMT-0700 PM","status":"OK","total":1,"data":[{"CLDBs":"in111-22.qa.lab,in111-24.qa.lab,in111-21.qa.lab","Zookeepers":"in111-21.qa.lab:5181,in111-22.qa.lab:5181,in111-24.qa.lab:5181"}]}