node cldbmaster
Returns the address of the master CLDB node.
The node cldbmaster
API returns the server ID and
hostname of the node serving as the CLDB master node.
Syntax
- CLI
-
maprcli node cldbmaster [ -cluster <cluster name> ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/node/cldbmaster[?<parameters>]
Parameters
Parameter |
Description |
---|---|
|
The name of the cluster for which to return the CLDB master node information. |
Examples
Return the CLDB master node information for the cluster my.cluster.com:
- CLI
-
maprcli node cldbmaster -cluster my.cluster.com
{ "timestamp":1622099062802, "timeofday":"2021-05-27 07:04:22.802 GMT+0000 AM", "status":"OK", "total":1, "data":[ { "cldbmaster":"ServerID: 3523090783455785824 HostName: m2-mapreng-vmm167214.xxxx" } ] }
- REST
-
curl -k -X POST 'https://10.163.167.214:8443/rest/node/cldbmaster?cluster=my.cluster.com' --user mapr:mapr
{"timestamp":1622099484367,"timeofday":"2021-05-27 07:11:24.367 GMT+0000 AM","status":"OK","total":1,"data":[{"cldbmaster":"ServerID: 3523090783455785824 HostName: m2-mapreng-vmm167214.mip.xxx"}]}