Cluster2Props
Properties for defining a Cluster2
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-cluster2
Initializer
import com.aliyun.ros.cdk.emr.Cluster2Props;
Cluster2Props.builder()
.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();
Properties
Name | Type | 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. |
applications
Required
public java.lang.Object getApplications();
- 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
public java.lang.Object getClusterName();
- 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
public java.lang.Object getClusterType();
- 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
public java.lang.Object getNodeAttributes();
- Type: com.aliyun.ros.cdk.core.IResolvable OR NodeAttributesProperty
Property nodeAttributes: Node attributes.All ECS nodes basic attributes of the cluster.
nodeGroups
Required
public java.lang.Object getNodeGroups();
- 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
public java.lang.Object getReleaseVersion();
- 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
public java.lang.Object getApplicationConfigs();
- 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
public java.lang.Object getBootstrapScripts();
- 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
public java.lang.Object getDeployMode();
- 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
public java.lang.Object getPaymentType();
- 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
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group ID.
securityMode
Optional
public java.lang.Object getSecurityMode();
- 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
public java.lang.Object getSubscriptionConfig();
- 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
public java.util.List<TagsProperty> getTags();
- 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.