You can call the AddClusterService operation to add a service that is supported by the current EMR version to a specified cluster.
Debugging
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=AddClusterService
&ClusterId=C-F32FB31D82954C64
&RegionId=cn-hangzhou
&Service.1.ServiceName=HDFS
&<common request parameters>
Sample success responses
XML
format
<AddClusterServiceResponse>
<requestId>EBB4D49C-4064-4818-B3AE-4C6BE5FC8264</requestId>
</AddClusterServiceResponse>
JSON
Syntax
{
"requestId":"EBB4D49C-4064-4818-B3AE-4C6BE5FC8264"
}