You can call CreateFlowProjectClusterSetting operation to create cluster settings for a project.

Debugging

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 CreateFlowProjectClusterSetting

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 CreateFlowProjectClusterSetting.

ClusterId String Yes C-DCEE11B49C8F****

The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster.

ProjectId String Yes FP-ED2F3E844FE3****

The ID of the project. You can call ListFlowProject View the ID of the project.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

DefaultUser String No hadoop

Default linux The user who submits the request. The default value is hadoop .

DefaultQueue String No default

The default submission queue. The default value is default .

UserList.N RepeatList No hadoop

The whitelist of Linux users 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 machine whitelist, only supported Gateway and Master Machine.

Response parameters

Parameter Type Example Description
Data Boolean true

Indicates whether the request 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
}

Error code

The port number of a client that accesses a Error CenterFor more information, see error codes.