Returns the hostnames of the nodes in the cluster that are running the CLDB service.
maprcli node listcldbs
[ -cluster <cluster name> ]
[ -cldb <cldb hostname|ip:port> ]
| Request Type | GET |
| Request URL | |
|
Parameter |
Description |
|---|---|
|
|
The name of the cluster for which to return the list of CLDB node hostnames. |
|
|
The hostname or IP address and port number of a CLDB node. |
Return the list of CLDB nodes for the cluster my.cluster.com:
# maprcli node listcldbs -cluster my.cluster.com -json
{
"timestamp":1529445021408,
"timeofday":"2018-06-19 02:50:21.408 GMT-0700 PM",
"status":"OK",
"total":1,
"data":[
{
"CLDBs":"in111-22.qa.lab,in111-24.qa.lab,in111-21.qa.lab"
}
]
}
# curl -k -X GET 'https://abc.sj.us:8443/rest/node/listcldbs?cluster=my.cluster.com' --user mapr:mapr
{"timestamp":1529445190525,"timeofday":"2018-06-19 02:53:10.525 GMT-0700 PM","status":"OK","total":1,"data":[{"CLDBs":"in111-22.qa.lab,in111-24.qa.lab,in111-21.qa.lab"}]}