tencent cloud

文档反馈

ModifyResourceScheduleConfig

最后更新时间:2024-01-09 10:47:29

    1. API Description

    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.

    We recommend you to use API Explorer
    Try it
    API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

    2. Input Parameters

    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

    3. Output Parameters

    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.

    4. Example

    Example1 Modifying the resource configuration of YARN Resource Scheduling

    Input Example

    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}"
    }
    

    Output Example

    {
        "Response": {
            "ErrorMsg": "xx",
            "Data": "xx",
            "RequestId": "xx",
            "IsDraft": true,
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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.
    联系我们

    联系我们,为您的业务提供专属服务。

    技术支持

    如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

    7x24 电话支持