Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to query the global configurations 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: DescribeGlobalConfig. |
| 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 | English ID of the EMR cluster. |
| Parameter Name | Type | Description |
|---|---|---|
| EnableResourceSchedule | Boolean | Whether the resource scheduling feature is enabled. |
| ActiveScheduler | String | Currently effective resource scheduler. |
| CapacityGlobalConfig | CapacityGlobalConfig | Information of the fair scheduler. Note: This field may return null, indicating that no valid values can be obtained. |
| FairGlobalConfig | FairGlobalConfig | Information of the capacity scheduler. Note: This field may return null, indicating that no valid values can be obtained. |
| Scheduler | String | Latest resource scheduler. |
| 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: DescribeGlobalConfig
<Common request parameters>
{
"InstanceId": "emr-xxx"
}{
"Response": {
"ActiveScheduler": "fair",
"CapacityGlobalConfig": {
"DefaultSettings": [
{
"Desc": "Ensure task localization execution. The number of scheduling delays can be specified. If the value is -1, scheduling delay will be disabled.",
"Key": "yarn.scheduler.capacity.node-locality-delay",
"Name": "node-locality-delay",
"Prompt": "Enter -1, 0, or a positive integer.",
"Value": null
},
{
"Desc": "Whether to allow allocating multiple containers in a single NodeManager heartbeat. The default is true. Restart is required for ResourceManager.",
"Key": "yarn.scheduler.capacity.per-node-heartbeat.multiple-assignments-enabled",
"Name": "multiple-assignments-enabled",
"Prompt": "Enter true or false.",
"Value": null
},
{
"Desc": "Maximum containers assignable per NodeManager heartbeat when multiple-assignments-enabled=true. Restart is required for ResourceManager.",
"Key": "yarn.scheduler.capacity.per-node-heartbeat.maximum-container-assignments",
"Name": "maximum-container-assignments",
"Prompt": "Enter -1 or a positive integer.",
"Value": null
},
{
"Desc": "Compares ResourceCalculator implementation for resources in the scheduler. By default, org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator uses memory only, while org.apache.hadoop.yarn.util.resource.DominantResourceCalculator uses multidimensional resources such as memory and CPU. Restart is required for ResourceManager.",
"Key": "yarn.scheduler.capacity.resource-calculator",
"Name": "resource-calculator",
"Prompt": "Enter the description information.",
"Value": null
}
],
"EnableLabel": false,
"LabelDir": null,
"QueueMappingOverride": null
},
"EnableResourceSchedule": true,
"FairGlobalConfig": {
"UserMaxAppsDefault": null
},
"RequestId": "37bd53ed-7516-4a36-988e-e4afeb731df1",
"Scheduler": "fair"
}
}
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 |
|---|---|
| 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. |
| InvalidParameter.InvalidInstanceName | Invalid cluster name. |
| ResourceNotFound.InstanceNotFound | The instance was not found. |
Feedback