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.
maprcli node cldbmaster
[ -cluster <cluster name> ]
| Request Type | GET |
| Request URL | |
|
Parameter |
Description |
|---|---|
|
|
The name of the cluster for which to return the CLDB master node information. |
Return the CLDB master node information for the cluster my.cluster.com:
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"
}
]
}
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"}]}