You can call ModifyClusterServiceConfig operation to modify the configuration information of a specified service in a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyClusterServiceConfig |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ModifyClusterServiceConfig. |
ClusterId | String | Yes | C-F32FB31D8295**** |
The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster. |
ConfigParams | String | Yes | {"tez-site":{"tez.am.resource.memory.mb":"640"}} |
The specific change of the configuration. It is a JSON string. |
RegionId | String | Yes | cn-hangzhou |
The region ID. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
ServiceName | String | Yes | TEZ |
The name of the service. |
Comment | String | No | modify tez config |
The comment for the configuration change. |
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-bp146tnrkq4tcso2**** |
The instance ID of the host. This is typically the ID of an ECS instance. |
ConfigType | String | No | "" |
The type of the configuration parameters. |
GatewayClusterIdList.N | RepeatList | No | C-XXX |
The ID of the associated gateway cluster to be synchronized. |
RefreshHostConfig | Boolean | No | false |
Specifies whether to configure the job immediately after the modification. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3 |
The ID of the request. |
Examples
Sample request
http(s)://[Endpoint]/?Action=ModifyClusterServiceConfig
&ClusterId=C-F32FB31D8295****
&RegionId=cn-hangzhou
&ServiceName=TEZ
&<common request parameters>
Sample success responses
XML
format
<RequestId>D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3</RequestId>
JSON
Syntax
{"RequestId":"D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3"}