通过ListInstanceServiceConfigurations获取集群配置项信息。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String ListInstanceServiceConfigurations

系统规定参数。取值:ListInstanceServiceConfigurations。

ClusterId String hb-t4naqsay5gn****

集群ID。

PageSize Integer 1

页码。不填时默认1。

PageNumber Integer 10

页面大小。不填时默认10。

返回数据

名称 类型 示例值 描述
ConfigureList Array of Config

配置项列表。

Config
ConfigureName String hbase#hbase-site.xml#hbase.client.keyvalue.maxsize

配置项名称。

ConfigureUnit String INT

配置项类型。

  • INT:整型。
  • STR: 字符串类型。
  • FLOAT:单浮点型。
DefaultValue String 10485760

默认值。

Description String hbase client keyvalue maxsize

配置描述。

NeedRestart String true

更改该配置项后是否需要重启

  • true:重启。
  • false:不重启。
RunningValue String 10485760

当前集群运行中的值。

ValueRange String R[10485760,52428800]

取值范围。

PageNumber Integer 1

页码。

PageRecordCount Integer 10

页面大小。

RequestId String 5B381E36-BCA3-4377-8638-B65C236617D5

请求ID。

TotalRecordCount Long 42

总记录数。

示例

请求示例

http(s)://[Endpoint]/?Action=ListInstanceServiceConfigurations
&ClusterId=hb-t4naqsay5gn****
&PageSize=1
&<公共请求参数>

正常返回示例

XML格式

<TotalRecordCount>42</TotalRecordCount>
<PageRecordCount>10</PageRecordCount>
<RequestId>1DD84F22-4615-451E-8F05-58405EDB7236</RequestId>
<PageNumber>1</PageNumber>
<ConfigureList>
    <Config>
        <ValueRange>R[10485760,52428800]</ValueRange>
        <DefaultValue>10485760</DefaultValue>
        <Description>hbase client keyvalue maxsize</Description>
        <ConfigureUnit>INT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.client.keyvalue.maxsize</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>10485760</RunningValue>
    </Config>
    <Config>
        <ValueRange>G[true|false]</ValueRange>
        <DefaultValue>false</DefaultValue>
        <Description>Enable dynamic class loader</Description>
        <ConfigureUnit>STR</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.dynamic.jars.enabled</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>false</RunningValue>
    </Config>
    <Config>
        <ValueRange>G[.+]</ValueRange>
        <DefaultValue>true</DefaultValue>
        <ConfigureUnit>STR</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.exporter.enabled</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>true</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[0,604800000]</ValueRange>
        <DefaultValue>604800000</DefaultValue>
        <Description>The time (in miliseconds) between major compactions of all HStoreFiles in a region</Description>
        <ConfigureUnit>INT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.hregion.majorcompaction</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>604800000</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[0.0,0.7]</ValueRange>
        <DefaultValue>0.0</DefaultValue>
        <Description>Split the call queues into read and write queues. The specified interval (which should be between 0.0 and 1.0) will be multiplied by the number of call queues. A value of 0 indicate to not split the call queues, meaning that both read and write requests will be pushed to the same set of queues.</Description>
        <ConfigureUnit>FLOAT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.ipc.server.callqueue.read.ratio</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>0.0</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[0.0,0.7]</ValueRange>
        <DefaultValue>0.0</DefaultValue>
        <Description>Given the number of read call queues, calculated from the total number of call queues multiplied by the callqueue.read.ratio, the scan.ratio property will split the read call queues into small-read and long-read queues.</Description>
        <ConfigureUnit>FLOAT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.ipc.server.callqueue.scan.ratio</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>0.0</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[0.24,0.475]|E[0.8*${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}&lt;=${hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit}]|E[0.95*${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}&gt;=${hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit}]</ValueRange>
        <DefaultValue>0.3</DefaultValue>
        <Description>Maximum size of all memstores in a region server before flushes are forced. Defaults to 95% of hbase.regionserver.global.memstore.size (0.95).</Description>
        <ConfigureUnit>FLOAT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>0.3</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[0.3,0.5]|E[${hbase#hbase-site.xml#hfile.block.cache.size}+${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}&lt;=0.8]</ValueRange>
        <DefaultValue>0.35</DefaultValue>
        <Description>Maximum size of all memstores in a region server before new updates are blocked and flushes are forced</Description>
        <ConfigureUnit>FLOAT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.regionserver.global.memstore.size</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>0.35</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[16,256]</ValueRange>
        <DefaultValue>32</DefaultValue>
        <Description>If more than this many logs, force flush of oldest region to oldest edit goes to disk.</Description>
        <ConfigureUnit>INT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.regionserver.maxlogs</ConfigureName>
        <NeedRestart>true</NeedRestart>
        <RunningValue>32</RunningValue>
    </Config>
    <Config>
        <ValueRange>R[1,10]</ValueRange>
        <DefaultValue>1</DefaultValue>
        <Description>Large compaction threads</Description>
        <ConfigureUnit>INT</ConfigureUnit>
        <ConfigureName>hbase#hbase-site.xml#hbase.regionserver.thread.compaction.large</ConfigureName>
        <NeedRestart>false</NeedRestart>
        <RunningValue>1</RunningValue>
    </Config>
</ConfigureList>

JSON格式

{
  "TotalRecordCount": 42,
  "PageRecordCount": 10,
  "RequestId": "1DD84F22-4615-451E-8F05-58405EDB7236",
  "PageNumber": 1,
  "ConfigureList": {
    "Config": [
      {
        "ValueRange": "R[10485760,52428800]",
        "DefaultValue": "10485760",
        "Description": "hbase client keyvalue maxsize",
        "ConfigureUnit": "INT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.client.keyvalue.maxsize",
        "NeedRestart": "true",
        "RunningValue": "10485760"
      },
      {
        "ValueRange": "G[true|false]",
        "DefaultValue": "false",
        "Description": "Enable dynamic class loader",
        "ConfigureUnit": "STR",
        "ConfigureName": "hbase#hbase-site.xml#hbase.dynamic.jars.enabled",
        "NeedRestart": "true",
        "RunningValue": "false"
      },
      {
        "ValueRange": "G[.+]",
        "DefaultValue": "true",
        "ConfigureUnit": "STR",
        "ConfigureName": "hbase#hbase-site.xml#hbase.exporter.enabled",
        "NeedRestart": "true",
        "RunningValue": "true"
      },
      {
        "ValueRange": "R[0,604800000]",
        "DefaultValue": "604800000",
        "Description": "The time (in miliseconds) between major compactions of all HStoreFiles in a region",
        "ConfigureUnit": "INT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.hregion.majorcompaction",
        "NeedRestart": "true",
        "RunningValue": "604800000"
      },
      {
        "ValueRange": "R[0.0,0.7]",
        "DefaultValue": "0.0",
        "Description": "Split the call queues into read and write queues. The specified interval (which should be between 0.0 and 1.0) will be multiplied by the number of call queues. A value of 0 indicate to not split the call queues, meaning that both read and write requests will be pushed to the same set of queues.",
        "ConfigureUnit": "FLOAT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.ipc.server.callqueue.read.ratio",
        "NeedRestart": "true",
        "RunningValue": "0.0"
      },
      {
        "ValueRange": "R[0.0,0.7]",
        "DefaultValue": "0.0",
        "Description": "Given the number of read call queues, calculated from the total number of call queues multiplied by the callqueue.read.ratio, the scan.ratio property will split the read call queues into small-read and long-read queues.",
        "ConfigureUnit": "FLOAT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.ipc.server.callqueue.scan.ratio",
        "NeedRestart": "true",
        "RunningValue": "0.0"
      },
      {
        "ValueRange": "R[0.24,0.475]|E[0.8*${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}<=${hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit}]|E[0.95*${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}>=${hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit}]",
        "DefaultValue": "0.3",
        "Description": "Maximum size of all memstores in a region server before flushes are forced. Defaults to 95% of hbase.regionserver.global.memstore.size (0.95).",
        "ConfigureUnit": "FLOAT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.regionserver.global.memstore.lowerLimit",
        "NeedRestart": "true",
        "RunningValue": "0.3"
      },
      {
        "ValueRange": "R[0.3,0.5]|E[${hbase#hbase-site.xml#hfile.block.cache.size}+${hbase#hbase-site.xml#hbase.regionserver.global.memstore.size}<=0.8]",
        "DefaultValue": "0.35",
        "Description": "Maximum size of all memstores in a region server before new updates are blocked and flushes are forced",
        "ConfigureUnit": "FLOAT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.regionserver.global.memstore.size",
        "NeedRestart": "true",
        "RunningValue": "0.35"
      },
      {
        "ValueRange": "R[16,256]",
        "DefaultValue": "32",
        "Description": "If more than this many logs, force flush of oldest region to oldest edit goes to disk.",
        "ConfigureUnit": "INT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.regionserver.maxlogs",
        "NeedRestart": "true",
        "RunningValue": "32"
      },
      {
        "ValueRange": "R[1,10]",
        "DefaultValue": "1",
        "Description": "Large compaction threads",
        "ConfigureUnit": "INT",
        "ConfigureName": "hbase#hbase-site.xml#hbase.regionserver.thread.compaction.large",
        "NeedRestart": "false",
        "RunningValue": "1"
      }
    ]
  }
}

错误码

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