You can call this operation to modify the specified service on a cluster.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-EBD62A703A430E23 The ID of the cluster.
RegionId String Yes cn-hangzhou RegionID
ServiceName String Yes Tez. The name of the service.
Comment String No modify tez config The comment for the modification.
ConfigParams String No {"tez-site":{"tez.am.resource.memory.mb":"640"}} The modification represented as a JSON string.
ConfigType String No "" The type of the configuration item.
CustomConfigParams String No {"tez-site":{"key1":{"Value":"value1"}}} The modification of the custom configuration item.
GroupId String No G-xxx The ID of the instance group.
HostInstanceId String No i-xxx The instance ID of the host.
AccessKeyId String No xxx The AccessKey ID.

Response parameters

Name Type Example Description
RequestId String D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B The ID of the request.

Examples

  • Sample requests
    /? ClusterId=C-xxx
    &RegionId=cn-hangzhou
    &ServiceName=TEZ
    &AccessKeyId=111
    &Comment=modify tez config
    &ConfigParams={"tez-site":{"tez.am.resource.memory.mb":"640"}}
    &ConfigType=""
    &CustomConfigParams={"tez-site":{"key1":{"Value":"value1"}}}
    &GroupId=G-xxx
    &HostInstanceId=i-xxx
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"RequestId":"D9A09DDE-6BE7-473B-9E4B-B3CB762FD4B3"
    }
  • Error response examples
    JSON format
    {
    	"code":"RAM.Permission.NotAllow",
    	"message":"It is not allow to execute this operation,please use RAM to authorize!",
    	"requestId":"9AEDC439-1F63-491D-B8C6-9737C372BF3A",
    	"successResponse":false
    }

Error codes

View error codes.