You can call this operation to query the list of high availability HBase services in the BDS cluster. For more information, see CreateHaCluster and CreateHbaseHaSlb. This operation will return the corresponding high availability services.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | QueryHBaseHaDB |
The operation that you want to perform. Set the value to QueryHBaseHaDB. |
BdsId | String | Yes | bds-t4n3496whj23ia4k |
The ID of the BDS cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ClusterList | Array |
The list of high availability services. |
|
Cluster |
The list of high availability services. |
||
ActiveName | String | hb-t4nn7dy1u1etbzmzm |
The ID of the primary instance. |
BdsName | String | bds-t4n3496whj23ia4k |
The ID of the BDS cluster. |
HaName | String | ha-v21tmnxjwh2yuy1il |
The ID of the high availability service. |
HaSlbConnList | Array |
The high availability SLB link in the high availability instance. |
|
HaSlbConn |
The high availability SLB link in the high availability instance. |
||
HbaseType | String | Standby |
Indicates whether the high availability SLB link is attached to the primary instance or the secondary instance. Valid values: Active: The high availability SLB link in the high availability instance is attached to the primary instance. Standby: The high availability SLB link in the high availability instance is attached to the secondary instance. |
SlbConnAddr | String | ha-v21tmnxjwh2yuy1il-phoenix.bds.9b78df04-b.rds.aliyuncs.com:8765 |
The connection address of the high availability Thrift or Phoenix service. |
SlbType | String | phoenix |
The type of the high availability service. Valid values: thrift phoenix |
StandbyName | String | hb-t4n0ye37832tx22vz |
The ID of the secondary instance. |
PageNumber | Integer | 1 |
The page number of the returned page. |
PageSize | Integer | 10 |
The number of entries returned per page. |
RequestId | String | 963355AD-A3B1-4654-AFFC-B5186EB8F889 |
The ID of the request. |
TotalCount | Long | 1 |
The total number of entries. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=QueryHBaseHaDB
&BdsId=bds-t4n3496whj23ia4k
&<Common request parameters>
Sample success responses
XML
format
<TotalCount>1</TotalCount>
<ClusterList>
<Cluster>
<ActiveName>hb-t4nn7dy1u1etbzmzm</ActiveName>
<BdsName>bds-t4n3496whj23ia4k</BdsName>
<HaName>ha-v21tmnxjwh2yuy1il</HaName>
<StandbyName>hb-t4n0ye37832tx22vz</StandbyName>
<HaSlbConnList>
<HaSlbConn>
<HbaseType>Standby</HbaseType>
<SlbConnAddr>ha-v21tmnxjwh2yuy1il-phoenix.bds.9b78df04-b.rds.aliyuncs.com:8765</SlbConnAddr>
<SlbType>phoenix</SlbType>
</HaSlbConn>
<HaSlbConn>
<HbaseType>Active</HbaseType>
<SlbConnAddr>ha-v21tmnxjwh2yuy1il-thrift.bds.9b78df04-b.rds.aliyuncs.com:9099</SlbConnAddr>
<SlbType>thrift</SlbType>
</HaSlbConn>
</HaSlbConnList>
</Cluster>
</ClusterList>
<PageSize>10</PageSize>
<RequestId>963355AD-A3B1-4654-AFFC-B5186EB8F889</RequestId>
<PageNumber>1</PageNumber>
JSON
format
{
"PageNumber":1,
"TotalCount":1,
"PageSize":10,
"RequestId":"963355AD-A3B1-4654-AFFC-B5186EB8F889",
"ClusterList":{
"Cluster":[
{
"BdsName":"bds-t4n3496whj23ia4k",
"ActiveName":"hb-t4nn7dy1u1etbzmzm",
"HaSlbConnList":{
"HaSlbConn":[
{
"SlbConnAddr":"ha-v21tmnxjwh2yuy1il-phoenix.bds.9b78df04-b.rds.aliyuncs.com:8765",
"HbaseType":"Standby",
"SlbType":"phoenix"
},
{
"SlbConnAddr":"ha-v21tmnxjwh2yuy1il-thrift.bds.9b78df04-b.rds.aliyuncs.com:9099",
"HbaseType":"Active",
"SlbType":"thrift"
}
]
},
"HaName":"ha-v21tmnxjwh2yuy1il",
"StandbyName":"hb-t4n0ye37832tx22vz"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.