You can call CreateFlowProjectClusterSetting operation to create cluster settings for a project.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateFlowProjectClusterSetting |
The operation that you want to perform. Set the value to CreateFlowProjectClusterSetting. |
ClusterId | String | Yes | C-DCEE11B49C8F**** |
The cluster ID. You can call ListClusters View the ID of the cluster. |
ProjectId | String | Yes | FP-ED2F3E844FE3**** |
The project ID. You can call ListFlowProject View the ID of the project. |
RegionId | String | Yes | cn-hangzhou |
The region ID. You can call DescribeRegions View the latest list of Alibaba Cloud regions. |
DefaultUser | String | No | hadoop |
The default Linux submission user, the default value is hadoop. |
DefaultQueue | String | No | default |
The default submission queue. The default value is default. |
UserList.N | RepeatList | No | hadoop |
The whitelisted Linux user who can submit jobs. |
QueueList.N | RepeatList | No | queue1 |
The whitelist of queues to which jobs can be submitted. |
HostList.N | RepeatList | No | emr-header-1.cluster-12345 |
Submit a whitelist list of machines, which only supports Gateway and Master machines. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Boolean | true |
Indicates whether the call was successful. |
RequestId | String | 0AD9FF20-F585-4E0A-870D-B8A8F884CCE6 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateFlowProjectClusterSetting
&ClusterId=C-DCEE11B49C8F****
&ProjectId=FP-ED2F3E844FE3****
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<CreateFlowProjectClusterSettingResponse>
<RequestId>ECC2D0D1-B6D5-468D-B698-30E8805EB574</RequestId>
<Data>true</Data>
</CreateFlowProjectClusterSettingResponse>
JSON
Syntax
{
"RequestId":"ECC2D0D1-B6D5-468D-B698-30E8805EB574",
"Data":true
}