Cluster2
This class encapsulates and extends the ROS resource type ALIYUN::EMR::Cluster2
, which is used to create an E-MapReduce (EMR) cluster.
Initializers
import com.aliyun.ros.cdk.emr.Cluster2;
Cluster2.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.applications(IResolvable)
.applications(java.util.List<IResolvable)
.applications(ApplicationsProperty>)
.clusterName(java.lang.String)
.clusterName(IResolvable)
.clusterType(java.lang.String)
.clusterType(IResolvable)
.nodeAttributes(IResolvable)
.nodeAttributes(NodeAttributesProperty)
.nodeGroups(IResolvable)
.nodeGroups(java.util.List<IResolvable)
.nodeGroups(NodeGroupsProperty>)
.releaseVersion(java.lang.String)
.releaseVersion(IResolvable)
// .applicationConfigs(IResolvable)
// .applicationConfigs(java.util.List<IResolvable)
// .applicationConfigs(ApplicationConfigsProperty>)
// .bootstrapScripts(IResolvable)
// .bootstrapScripts(java.util.List<IResolvable)
// .bootstrapScripts(BootstrapScriptsProperty>)
// .deployMode(java.lang.String)
// .deployMode(IResolvable)
// .paymentType(java.lang.String)
// .paymentType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .securityMode(java.lang.String)
// .securityMode(IResolvable)
// .subscriptionConfig(IResolvable)
// .subscriptionConfig(SubscriptionConfigProperty)
// .tags(java.util.List<TagsProperty>)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
applications |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property applications: Application List.The value range of the number n of the number N group: 1 ~ 100. |
clusterName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterName: Cluster name.The length is 1 ~ 128 characters, and the alphabet or Chinese must be started. It cannot start with http:\/\/ and https: \/\/.It can include Chinese, English, numbers, half-horn colons (:), down line (_), half-angle period (.) Or short lines (-). |
clusterType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterType: Cluster type.Ranges: DATALAKE: The new version of the data lake. OLAP: Data analysis. DATAFLOW: Real -time data stream. DATASERVING: Data service. HADOOP: The old version of the data lake (not recommended, it is recommended to use the new version of the data lake). |
nodeAttributes |
com.aliyun.ros.cdk.core.IResolvable OR NodeAttributesProperty |
Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster. |
nodeGroups |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property nodeGroups: The node group configuration array.The value range of the number n of the number N group: 1 ~ 100. |
releaseVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property releaseVersion: EMR release version.View EMR distribution versions can be viewed through the EMR cluster. |
applicationConfigs |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property applicationConfigs: Application configuration.The value range of the number n of the array element n: 1 ~ 1000. |
bootstrapScripts |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property bootstrapScripts: Guide the script group.The value range of the number n of the number N group: 1 ~ 10. |
deployMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property deployMode: Application deployment mode in the cluster.Ranges: Normal: non -high available deployment.Cluster 1 master node. HA: High availability deployment.High availability deployment requires at least 3 master nodes. |
paymentType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property paymentType: Payment type. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group ID. |
securityMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property securityMode: Cluster Kerberos security mode.Ranges: Normal: General mode, does not open the Kerberos mode. Kerberos: Open the Kerberos mode. |
subscriptionConfig |
com.aliyun.ros.cdk.core.IResolvable OR SubscriptionConfigProperty |
Property subscriptionConfig: Pre -paid allocation.When the value of PaymentType is Subscripting, it must be filled. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to cluster. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
applications
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ApplicationsProperty>
Property applications: Application List.The value range of the number n of the number N group: 1 ~ 100.
clusterName
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterName: Cluster name.The length is 1 ~ 128 characters, and the alphabet or Chinese must be started. It cannot start with http:\/\/ and https: \/\/.It can include Chinese, English, numbers, half-horn colons (:), down line (_), half-angle period (.) Or short lines (-).
clusterType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterType: Cluster type.Ranges: DATALAKE: The new version of the data lake. OLAP: Data analysis. DATAFLOW: Real -time data stream. DATASERVING: Data service. HADOOP: The old version of the data lake (not recommended, it is recommended to use the new version of the data lake).
nodeAttributes
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR NodeAttributesProperty
Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster.
nodeGroups
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
NodeGroupsProperty>
Property nodeGroups: The node group configuration array.The value range of the number n of the number N group: 1 ~ 100.
releaseVersion
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property releaseVersion: EMR release version.View EMR distribution versions can be viewed through the EMR cluster.
applicationConfigs
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ApplicationConfigsProperty>
Property applicationConfigs: Application configuration.The value range of the number n of the array element n: 1 ~ 1000.
bootstrapScripts
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
BootstrapScriptsProperty>
Property bootstrapScripts: Guide the script group.The value range of the number n of the number N group: 1 ~ 10.
deployMode
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deployMode: Application deployment mode in the cluster.Ranges: Normal: non -high available deployment.Cluster 1 master node. HA: High availability deployment.High availability deployment requires at least 3 master nodes.
paymentType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property paymentType: Payment type.
Ranges: PayAsYouGo: Post-paid, pay-as-you-go. Subscription: Prepaid, yearly and monthly. Default: PayAsYouGo.
resourceGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group ID.
securityMode
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityMode: Cluster Kerberos security mode.Ranges: Normal: General mode, does not open the Kerberos mode. Kerberos: Open the Kerberos mode.
subscriptionConfig
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR SubscriptionConfigProperty
Property subscriptionConfig: Pre -paid allocation.When the value of PaymentType is Subscripting, it must be filled.
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to cluster.
Max support 20 tags to add during create cluster. Each tag with two properties Key and Value, and Key is required.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.emr.Cluster2;
Cluster2.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrApplicationLinks |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ApplicationLinks: ApplicationLinks of cluster. |
attrClusterId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ClusterId: Cluster ID. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrApplicationLinks
Required
public IResolvable getAttrApplicationLinks();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ApplicationLinks: ApplicationLinks of cluster.
attrClusterId
Required
public IResolvable getAttrClusterId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ClusterId: Cluster ID.