This API will be disused soon.
Planned disuse time: 2025-08-27 15:27:28
Domain name for API request: emr.intl.tencentcloudapi.com.
This API is deprecated. Use ModifyYarnQueueV2 to modify queue configuration. No related logs exist in the past one year.
This API is used to modify the resource configuration of YARN Resource Scheduling. It has been deprecated. Use the ModifyYarnQueueV2 API to modify the queue configuration.
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 | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| 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 empty, it means that verification fails and configuration is not successful. |
| Data | String | Returned data. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: emr.intl.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": {
"IsDraft": true,
"ErrorMsg": "ErrorMsg_test",
"Data": "json",
"RequestId": "61fb757e-5a86-41ab-8421-b3abc7aff683"
}
}
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. |
Feedback