node listcldbs

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

Syntax

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

Parameters

Parameter

Description

cluster

The name of the cluster for which to return the list of CLDB node hostnames.

cldb

The hostname or IP address and port number of a CLDB node.

Examples

Return the list of CLDB nodes for the cluster my.cluster.com:

CLI
# 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"
		}
	]
}
REST
# 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"}]}