文档

ListDoctorHBaseTables - 批量获取 HBase Table 信息

更新时间:

批量获取 HBase Table 信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
NextTokenstring

标记当前开始读取的位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

一次获取的最大记录数。

20
DateTimestring

日期。

2023-01-01
TableNamesarray

表名称列表。

string

表名称。

namespace1:tb_item
OrderTypestring

排序方向。取值:

  • ASC:升序排列。

  • DESC:降序排列。

ASC
OrderBystring

排序字段。取值:

  • tableSize:表大小
tableSize

返回参数

名称类型描述示例值
object

返回数据

Dataobject []

返回数据。

TableNamestring

表名。

tb_item
Metricsobject

指标信息。

RegionServerCountobject

表在几个 region server 上。

Namestring

指标名称。

regionServerCount
Valuelong

指标值。

2
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of region servers count
RegionCountobject

表在几个 region 上。

Namestring

指标名称。

regionCount
Valuelong

指标值。

3
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of regions count
TableSizeobject

表大小。

Namestring

指标名称。

tableSize
Valuelong

指标值。

678
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Size of the table
StoreFileCountobject

store file 个数。

Namestring

指标名称。

storeFileCount
Valuelong

指标值。

36
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Number of store files
DailyReadRequestobject

表单日读取总量。

Namestring

指标名称。

dailyReadRequest
Valuelong

指标值。

1000
Unitstring

指标单位。

“”
Descriptionstring

指标描述。

Number of read requests per day
DailyWriteRequestobject

表单日写总量。

Namestring

指标名称。

dailyWriteRequest
Valuelong

指标值。

1000
Unitstring

指标单位。

“”
Descriptionstring

指标描述。

Number of write requests per day
RegionBalanceobject

均衡度。

Namestring

指标名称。

regionBalance
Valuefloat

指标值。

1.0
Unitstring

指标单位。

“”
Descriptionstring

指标描述。

The ability to evenly distribute Regions on different RegionServer nodes
RequestBalanceobject

请求均衡度。

Namestring

指标名称。

requestBalance
Valuefloat

指标值。

0.9
Unitstring

指标单位。

“”
Descriptionstring

指标描述。

The balance of distributing requests
HotDataSizeobject

热数据大小。

Namestring

指标名称。

hotDataSize
Valuelong

指标值。

100
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Size of the hot data size
WarmDataSizeobject

温数据大小。

Namestring

指标名称。

warmDataSize
Valuelong

指标值。

100
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Size of the warm data size
ColdDataSizeobject

冷数据大小。

Namestring

指标名称。

coldDataSize
Valuelong

指标值。

100
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Size of the cold data size
FreezeDataSizeobject

极冷数据大小。

Namestring

指标名称。

freezeDataSize
Valuelong

指标值。

100
Unitstring

指标单位。

MB
Descriptionstring

指标描述。

Size of the freeze data size
WarmConfigDayobject

温数据访问天数配置。

Namestring

指标名称。

warmConfigDay
Valuelong

指标值。

1
Unitstring

指标单位。

day
Descriptionstring

指标描述。

Warm config day
ColdConfigDayobject

冷数据访问天数配置。

Namestring

指标名称。

coldConfigDay
Valuelong

指标值。

1
Unitstring

指标单位。

dat
Descriptionstring

指标描述。

Cold config day
FreezeConfigDayobject

极冷数据访问天数配置。

Namestring

指标名称。

freezeConfigDay
Valuelong

指标值。

1
Unitstring

指标单位。

day
Descriptionstring

指标描述。

Freeze config day
Localityobject

本地化率。

Namestring

指标名称。

locality
Valuefloat

指标值。

0
Unitstring

指标单位。

""
Descriptionstring

指标描述。

The locality of data
ColdAccessDayobject

表多少天没被访问。

Namestring

指标名称。

coldAccessDay
Valuelong

指标值。

1
Unitstring

指标单位。

day
Descriptionstring

指标描述。

Cold access day
RegionCountDayGrowthRatioobject

region 个数日增量比例。

Namestring

指标名称。

regionCountDayGrowthRatio
Valuefloat

指标值。

1.0
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of region count
TableSizeDayGrowthRatioobject

表大小日增量比例。

Namestring

指标名称。

tableSizeDayGrowthRatio
Valuefloat

指标值。

1.0
Unitstring

指标单位。

'"
Descriptionstring

指标描述。

Day growth ratio of table size
StoreFileCountDayGrowthRatioobject

store file 个数日增量比例。

Namestring

指标名称。

storeFileCountDayGrowthRatio
Valuefloat

指标值。

0.7
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of store file count
DailyReadRequestDayGrowthRatioobject

单日读请求日增量比例。

Namestring

指标名称。

dailyReadRequestDayGrowthRatio
Valuefloat

指标值。

0.8
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Day growth ratio of read requests
DailyWriteRequestDayGrowthRatioobject

单日写请求日增量比例。

Namestring

指标名称。

dailyWriteRequestDayGrowthRatio
Valuefloat

指标值。

0.8
Unitstring

指标单位。

""
Descriptionstring

指标描述。

The balance of distributing requests
ReadRequestBalanceobject

读均衡度。

Namestring

指标名称。

readRequestBalance
Valuefloat

指标值。

1.0
Unitstring

指标单位。

""
Descriptionstring

指标描述。

The balance of distributing read requests
WriteRequestBalanceobject

写均衡度。

Namestring

指标名称。

writeRequestBalance
Valuefloat

指标值。

1.0
Unitstring

指标单位。

""
Descriptionstring

指标描述

The balance of distributing write requests
Analysisobject

诊断结果。

TableScoreinteger

表打分。

67
RequestUnbalanceSuggestionstring

读写不均衡描述。

ead request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均读请求数量为764361,以下分区存在读请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 读请求数量: 1543919</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 读请求数量: 1512817</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 读请求数量: 1504293</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>
RequestHotspotRegionListarray

读写热点 region 列表。

string

读写热点 region。

5f019e8cf7c16be9768634cb99ccbe05
ReadRequestUnbalanceSuggestionstring

读不均衡描述。

ead request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均读请求数量为764361,以下分区存在读请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 读请求数量: 1543919</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 读请求数量: 1512817</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 读请求数量: 1504293</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>
ReadRequestHotspotRegionListarray

读热点 hotspot regions 列表。

string

读热点 hotspot regions。

5f019e8cf7c16be9768634cb99ccbe05
WriteRequestUnbalanceSuggestionstring

写不均衡度描述。

write request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均写请求数量为786142,以下分区存在写请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 写请求数量: 1588305</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 写请求数量: 1556984</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 写请求数量: 1548764</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>
WriteRequestHotspotRegionListarray

写热点 hotspot regions 列表。

string

写热点 hotspot regions。

5f019e8cf7c16be9768634cb99ccbe05
RequestIdstring

请求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****
NextTokenstring

返回读取到的数据位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

本次请求所返回的最大记录条数。

20
TotalCountinteger

本次请求条件下的数据总量。

200

示例

正常返回示例

JSON格式

{
  "Data": [
    {
      "TableName": "tb_item",
      "Metrics": {
        "RegionServerCount": {
          "Name": "regionServerCount",
          "Value": 2,
          "Unit": "\"\"",
          "Description": "Number of region servers count"
        },
        "RegionCount": {
          "Name": "regionCount",
          "Value": 3,
          "Unit": "\"\"",
          "Description": "Number of regions count"
        },
        "TableSize": {
          "Name": "tableSize",
          "Value": 678,
          "Unit": "MB",
          "Description": "Size of the table"
        },
        "StoreFileCount": {
          "Name": "storeFileCount",
          "Value": 36,
          "Unit": "\"\"",
          "Description": "Number of store files"
        },
        "DailyReadRequest": {
          "Name": "dailyReadRequest",
          "Value": 1000,
          "Unit": "“”",
          "Description": "Number of read requests per day"
        },
        "DailyWriteRequest": {
          "Name": "dailyWriteRequest",
          "Value": 1000,
          "Unit": "“”",
          "Description": "Number of write requests per day"
        },
        "RegionBalance": {
          "Name": "regionBalance",
          "Value": 1,
          "Unit": "“”",
          "Description": "The ability to evenly distribute Regions on different RegionServer nodes"
        },
        "RequestBalance": {
          "Name": "requestBalance",
          "Value": 0.9,
          "Unit": "“”",
          "Description": "The balance of distributing requests"
        },
        "HotDataSize": {
          "Name": "hotDataSize",
          "Value": 100,
          "Unit": "MB",
          "Description": "Size of the hot data size"
        },
        "WarmDataSize": {
          "Name": "warmDataSize",
          "Value": 100,
          "Unit": "MB",
          "Description": "Size of the warm data size"
        },
        "ColdDataSize": {
          "Name": "coldDataSize",
          "Value": 100,
          "Unit": "MB",
          "Description": "Size of the cold data size"
        },
        "FreezeDataSize": {
          "Name": "freezeDataSize",
          "Value": 100,
          "Unit": "MB",
          "Description": "Size of the freeze data size"
        },
        "WarmConfigDay": {
          "Name": "warmConfigDay",
          "Value": 1,
          "Unit": "day",
          "Description": "Warm config day"
        },
        "ColdConfigDay": {
          "Name": "coldConfigDay",
          "Value": 1,
          "Unit": "dat",
          "Description": "Cold config day"
        },
        "FreezeConfigDay": {
          "Name": "freezeConfigDay",
          "Value": 1,
          "Unit": "day",
          "Description": "Freeze config day"
        },
        "Locality": {
          "Name": "locality",
          "Value": 0,
          "Unit": "\"\"",
          "Description": "The locality of data"
        },
        "ColdAccessDay": {
          "Name": "coldAccessDay",
          "Value": 1,
          "Unit": "day",
          "Description": "Cold access day"
        },
        "RegionCountDayGrowthRatio": {
          "Name": "regionCountDayGrowthRatio",
          "Value": 1,
          "Unit": "\"\"",
          "Description": "Day growth ratio of region count"
        },
        "TableSizeDayGrowthRatio": {
          "Name": "tableSizeDayGrowthRatio",
          "Value": 1,
          "Unit": "'\"",
          "Description": "Day growth ratio of table size"
        },
        "StoreFileCountDayGrowthRatio": {
          "Name": "storeFileCountDayGrowthRatio",
          "Value": 0.7,
          "Unit": "\"\"",
          "Description": "Day growth ratio of store file count"
        },
        "DailyReadRequestDayGrowthRatio": {
          "Name": "dailyReadRequestDayGrowthRatio",
          "Value": 0.8,
          "Unit": "\"\"",
          "Description": "Day growth ratio of read requests"
        },
        "DailyWriteRequestDayGrowthRatio": {
          "Name": "dailyWriteRequestDayGrowthRatio",
          "Value": 0.8,
          "Unit": "\"\"",
          "Description": "The balance of distributing requests"
        },
        "ReadRequestBalance": {
          "Name": "readRequestBalance",
          "Value": 1,
          "Unit": "\"\"",
          "Description": "The balance of distributing read requests"
        },
        "WriteRequestBalance": {
          "Name": "writeRequestBalance",
          "Value": 1,
          "Unit": "\"\"",
          "Description": "The balance of distributing write requests"
        }
      },
      "Analysis": {
        "TableScore": 67,
        "RequestUnbalanceSuggestion": "ead request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均读请求数量为764361,以下分区存在读请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 读请求数量: 1543919</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 读请求数量: 1512817</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 读请求数量: 1504293</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>",
        "RequestHotspotRegionList": [
          "5f019e8cf7c16be9768634cb99ccbe05"
        ],
        "ReadRequestUnbalanceSuggestion": "ead request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均读请求数量为764361,以下分区存在读请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 读请求数量: 1543919</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 读请求数量: 1512817</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 读请求数量: 1504293</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>",
        "ReadRequestHotspotRegionList": [
          "5f019e8cf7c16be9768634cb99ccbe05"
        ],
        "WriteRequestUnbalanceSuggestion": "write request unbalance is <p class='report-detail-topic'>表分区总数量为15,分区平均写请求数量为786142,以下分区存在写请求热点访问:</p><ul class='report-detail-ul'><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: f1c922d41529785e21b61cf4c672b98a 写请求数量: 1588305</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: 5f019e8cf7c16be9768634cb99ccbe05 写请求数量: 1556984</li><li class='.report-detail-li'>RegionServer: emr-worker-2 Region Id: d113992fea3a457f60b8b8aa5d6fa037 写请求数量: 1548764</li></ul><p style='line-height: 16px; font-size: 16px; margin: 0 auto'>&nbsp;</p>",
        "WriteRequestHotspotRegionList": [
          "5f019e8cf7c16be9768634cb99ccbe05"
        ]
      }
    }
  ],
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
  "NextToken": "DD6B1B2A-5837-5237-ABE4-FF0C89568980",
  "MaxResults": 20,
  "TotalCount": 200
}

错误码

HTTP status code错误码错误信息描述
400ConflictParametersParameters that must not be used together. %s多个参数间存在冲突。
400IncompleteSignatureThe request signature is invalid.API请求签名不合法。
400InvalidActionThe action %s requested is invalid.不合法的Action。
400InvalidParameterThe specified parameter %s is not valid.参数错误。
400InvalidParameterValueThe input parameter %s is invalid or out of range.参数值超出范围。
400MissingActionThe action %s requested is missing.缺少Action参数
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.参数缺失。
400NotAuthorizedYou do not have permission to perform this action. %s没有权限。
400ThrottlingExceptionThe request was denied due to request throttling. %s限流。
404ResourceNotFoundThe resource not found by %s.请求的资源未找到。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误。
503ServiceFailureThe request has failed due to a temporary failure of %s service.依赖的阿里云其他服务不可用。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.请求超时或者服务不可用。

访问错误中心查看更多错误码。

  • 本页导读 (1)