Skip to content

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.ListApplicationsProperty> 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.ListNodeGroupsProperty> 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.ListApplicationConfigsProperty> 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.ListBootstrapScriptsProperty> 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.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

applicationsRequired

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListApplicationsProperty>

Property applications: Application List.The value range of the number n of the number N group: 1 ~ 100.


clusterNameRequired

  • 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 (-).


clusterTypeRequired

  • 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).


nodeAttributesRequired

Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster.


nodeGroupsRequired

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListNodeGroupsProperty>

Property nodeGroups: The node group configuration array.The value range of the number n of the number N group: 1 ~ 100.


releaseVersionRequired

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


applicationConfigsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListApplicationConfigsProperty>

Property applicationConfigs: Application configuration.The value range of the number n of the array element n: 1 ~ 1000.


bootstrapScriptsOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListBootstrapScriptsProperty>

Property bootstrapScripts: Guide the script group.The value range of the number n of the number N group: 1 ~ 10.


deployModeOptional

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


paymentTypeOptional

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


resourceGroupIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource group ID.


securityModeOptional

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


subscriptionConfigOptional

Property subscriptionConfig: Pre -paid allocation.When the value of PaymentType is Subscripting, it must be filled.


tagsOptional

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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

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

xRequired

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

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrApplicationLinksRequired

public IResolvable getAttrApplicationLinks();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ApplicationLinks: ApplicationLinks of cluster.


attrClusterIdRequired

public IResolvable getAttrClusterId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ClusterId: Cluster ID.