You can call the AddClusterService operation to add a service that is supported by the current EMR version to a specified cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes AddClusterService

The operation that you want to perform. Set the value to AddClusterService.

ClusterId String Yes C-F32FB31D8295****

The ID of the cluster to which you want to add the service.

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

Service.N.ServiceName String Yes HDFS

The name of the service to be added, such as HDFS and YARN.

Comment String No addService

The comment for the service you want to add.

Response parameters

Parameter Type Example Description
RequestId String EBB4D49C-4064-4818-B3AE-4C6BE5FC8264

The ID of the request.


Sample requests

&<common request parameters>

Sample success responses

XML format


JSON Syntax