Domain name for API request: emr.tencentcloudapi.com.
This API is used to modify the resource configuration of YARN Resource Scheduling.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ModifyResourceScheduleConfig. |
Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
Region | No | String | Common Params. This parameter is not required for this API. |
InstanceId | Yes | String | EMR cluster ID |
Key | Yes | String | Business identifier. fair : Edit fair configuration items; fairPlan : Edit the execution plan; capacity : Edit capacity configuration items. |
Value | Yes | String | Modified module information |
Parameter Name | Type | Description |
---|---|---|
IsDraft | Boolean | true : Draft, indicating the resource pool is not refreshed. |
ErrorMsg | String | Verification error information. If it is not null, the verification fails and thus the configuration fails. Note: This field may return null , indicating that no valid value can be obtained. |
Data | String | The response data. Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: emr.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyResourceScheduleConfig
<Common request parameters>
{
"InstanceId": "emr-buy439fq",
"Key": "capacity",
"Value": "{\"queueMappings\":[{\"mapping-type\":\"u\",\"name\":\"1331\",\"full-queue-name\":\"132\",\"special-name\":true,\"special-queue\":true}],\"queue\":{\"name\":\"root\",\"capacity\":100,\"maximum-capacity\":100,\"minimum-user-limit-percent\":0,\"user-limit-factor\":0,\"maximum-allocation-mb\":0,\"maximum-allocation-vcores\":0,\"state\":null,\"maximum-applications\":0,\"maximum-am-resource-percent\":0,\"acl_submit_applications\":null,\"acl_administer_queue\":null,\"queues\":[{\"name\":\"121\",\"capacity\":12,\"maximum-capacity\":12,\"minimum-user-limit-percent\":12,\"user-limit-factor\":12,\"maximum-allocation-mb\":12,\"maximum-allocation-vcores\":12,\"state\":\"RUNNING\",\"maximum-applications\":10000,\"maximum-am-resource-percent\":25,\"acl_submit_applications\":{\"user\":\"*\",\"group\":\"*\"},\"acl_administer_queue\":{\"user\":\"*\",\"group\":\"*\"},\"queues\":null},{\"name\":\"12\",\"capacity\":12,\"maximum-capacity\":12,\"minimum-user-limit-percent\":12,\"user-limit-factor\":12,\"maximum-allocation-mb\":12,\"maximum-allocation-vcores\":12,\"state\":\"RUNNING\",\"maximum-applications\":10000,\"maximum-am-resource-percent\":25,\"acl_submit_applications\":{\"user\":\"*\",\"group\":\"*\"},\"acl_administer_queue\":{\"user\":\"*\",\"group\":\"*\"},\"queues\":null},{\"name\":\"default\",\"capacity\":76,\"maximum-capacity\":100,\"minimum-user-limit-percent\":12,\"user-limit-factor\":1,\"maximum-allocation-mb\":12,\"maximum-allocation-vcores\":12,\"state\":\"RUNNING\",\"maximum-applications\":12,\"maximum-am-resource-percent\":12,\"acl_submit_applications\":{\"user\":\"*\",\"group\":\"*\"},\"acl_administer_queue\":{\"user\":\"*\",\"group\":\"*\"},\"queues\":[{\"name\":\"d1\",\"capacity\":100,\"maximum-capacity\":100,\"minimum-user-limit-percent\":null,\"user-limit-factor\":null,\"maximum-allocation-mb\":null,\"maximum-allocation-vcores\":null,\"state\":\"RUNNING\",\"maximum-applications\":10000,\"maximum-am-resource-percent\":25,\"acl_submit_applications\":{\"user\":\"*\",\"group\":\"*\"},\"acl_administer_queue\":{\"user\":\"*\",\"group\":\"*\"},\"queues\":null}]}]},\"queueMappingsOverride\":true}"
}
{
"Response": {
"ErrorMsg": "xx",
"Data": "xx",
"RequestId": "xx",
"IsDraft": true,
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation | Operation failed. |
InternalError | Internal error. |
InternalError.CamCgwError | An error occurred while calling another service API. |
InternalError.WoodServerError | An error occurred while calling another service API. |
InvalidParameter | Invalid parameter. |
ResourceNotFound.InstanceNotFound | The instance was not found. |
UnauthorizedOperation.CheckCamAuth | Unauthorized operation. |
本页内容是否解决了您的问题?