You can call this operation to modify the configuration of a specified service of a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyClusterServiceConfig |
The operation that you want to perform. Set the value to ModifyClusterServiceConfig. |
ClusterId | String | Yes | C-xxx |
The ID of the cluster. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region to which the cluster belongs. |
ServiceName | String | Yes | TEZ |
The name of the service. |
Comment | String | No | modify tez config |
The comment for the configuration change. |
ConfigParams | String | No | {"tez-site":{"tez.am.resource.memory.mb":"640"}} |
The specific change of the configuration. It is a JSON string. |
ConfigType | String | No | "" |
The type of the configuration parameters. |
CustomConfigParams | String | No | {"tez-site":{"key1":{"Value":"value1"}}} |
The modification of custom configuration parameters. |
GroupId | String | No | G-xxx |
The ID of the host group. |
HostInstanceId | String | No | i-xxx |
The ID of the ECS instance. |
AccessKeyId | String | No | LTAI8ljWyu7y**** |
The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyClusterServiceConfig
&ClusterId=C-xxx
&RegionId=cn-hangzhou
&ServiceName=TEZ
&<Common request parameters>
Sample success responses
XML
format
<ModifyClusterServiceConfigResponse>
<RequestId>D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3</RequestId>
</ModifyClusterServiceConfigResponse>
JSON
format
{
"RequestId":"D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Params.Illegal | The specified parameters are wrongly formed. | The error message returned because the format of the specified parameters is invalid. |
403 | User.OtherUserResource.NotAllow | It is not allowed to operate other user's resource | The error message returned because you are not authorized to manage other user's resources. |
403 | User.Account.Abnormal | The User Account maybe is out of service! | The error message returned because the user account is out of service. |
403 | JobId.Not.Exist | Job [%s] does not exist or is deleted! | The error message returned because the ID of the specified job does not exist. Specify a valid value. |
403 | Job.RegionId.Not.Match | Specified job does not exist in this region[%s]! | The error message returned because the specified job does not exist in the region where your cluster resides. Specify a valid value. |
404 | ClusterId.NotFound | The ClusterId provided does not exist in our records. | The error message returned because the ID of the cluster does not exist. Make sure the ID of the cluster is valid. |
500 | InternalError | The request processing has failed due to some unknown error. | The error message returned because the request processing has failed due to an internal error. Submit a ticket. |
For a list of error codes, visit the API Error Center.