ClusterProps
Properties for defining a Cluster
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-cluster
Initializer
import com.aliyun.ros.cdk.emr.ClusterProps;
ClusterProps.builder()
.chargeType(java.lang.String)
.chargeType(IResolvable)
.clusterType(java.lang.String)
.clusterType(IResolvable)
.emrVer(java.lang.String)
.emrVer(IResolvable)
.hostGroup(IResolvable)
.hostGroup(java.util.List<IResolvable)
.hostGroup(HostGroupProperty>)
.name(java.lang.String)
.name(IResolvable)
.netType(java.lang.String)
.netType(IResolvable)
.useLocalMetaDb(java.lang.Boolean)
.useLocalMetaDb(IResolvable)
.zoneId(java.lang.String)
.zoneId(IResolvable)
// .authorizeContent(java.lang.String)
// .authorizeContent(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .bootstrapAction(IResolvable)
// .bootstrapAction(java.util.List<IResolvable)
// .bootstrapAction(BootstrapActionProperty>)
// .clickHouseConf(IResolvable)
// .clickHouseConf(java.util.Map<java.lang.String, java.lang.Object>)
// .config(IResolvable)
// .config(java.util.List<IResolvable)
// .config(ConfigProperty>)
// .configurations(java.lang.String)
// .configurations(IResolvable)
// .depositType(java.lang.String)
// .depositType(IResolvable)
// .easEnable(java.lang.Boolean)
// .easEnable(IResolvable)
// .highAvailabilityEnable(java.lang.Boolean)
// .highAvailabilityEnable(IResolvable)
// .initCustomHiveMetaDb(java.lang.Boolean)
// .initCustomHiveMetaDb(IResolvable)
// .instanceGeneration(java.lang.String)
// .instanceGeneration(IResolvable)
// .ioOptimized(java.lang.Boolean)
// .ioOptimized(IResolvable)
// .isOpenPublicIp(java.lang.Boolean)
// .isOpenPublicIp(IResolvable)
// .keyPairName(java.lang.String)
// .keyPairName(IResolvable)
// .logPath(java.lang.String)
// .logPath(IResolvable)
// .machineType(java.lang.String)
// .machineType(IResolvable)
// .masterPwd(java.lang.String)
// .masterPwd(IResolvable)
// .metaStoreConf(java.lang.String)
// .metaStoreConf(IResolvable)
// .metaStoreType(java.lang.String)
// .metaStoreType(IResolvable)
// .optionSoftWareList(IResolvable)
// .optionSoftWareList(java.util.List<java.lang.String)
// .optionSoftWareList(IResolvable>)
// .period(java.lang.Number)
// .period(IResolvable)
// .relatedClusterId(java.lang.String)
// .relatedClusterId(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .securityGroupId(java.lang.String)
// .securityGroupId(IResolvable)
// .securityGroupName(java.lang.String)
// .securityGroupName(IResolvable)
// .sshEnable(java.lang.Boolean)
// .sshEnable(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .useCustomHiveMetaDb(java.lang.Boolean)
// .useCustomHiveMetaDb(IResolvable)
// .userDefinedEmrEcsRole(java.lang.String)
// .userDefinedEmrEcsRole(IResolvable)
// .userInfo(IResolvable)
// .userInfo(java.util.List<IResolvable)
// .userInfo(UserInfoProperty>)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
// .whiteListType(java.lang.String)
// .whiteListType(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
chargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property chargeType: The billing method. |
clusterType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterType: The type of the cluster. |
emrVer |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property emrVer: The version of EMR. |
hostGroup |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property hostGroup:. |
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the cluster. |
netType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property netType: The type of the network. |
useLocalMetaDb |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used. |
zoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property zoneId: The zone ID. |
authorizeContent |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property authorizeContent: Not required. |
autoRenew |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Indicates whether the subscription cluster is auto-renewed. |
bootstrapAction |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property bootstrapAction:. |
clickHouseConf |
com.aliyun.ros.cdk.core.IResolvable OR java.util.Map |
Property clickHouseConf: undefined. |
config |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property config:. |
configurations |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property configurations: Not required. |
depositType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property depositType: The hosting type. |
easEnable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property easEnable: Indicates whether the cluster is a high-security cluster. |
highAvailabilityEnable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property highAvailabilityEnable: Indicates whether the cluster is a high-availability cluster. |
initCustomHiveMetaDb |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property initCustomHiveMetaDb: A reserved parameter. |
instanceGeneration |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceGeneration: The generation of the ECS instances. |
ioOptimized |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property ioOptimized: Indicates wether I\/O optimization is enabled. |
isOpenPublicIp |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property isOpenPublicIp: Indicates whether a public IP address is assigned. |
keyPairName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property keyPairName: The name of the key pair. |
logPath |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property logPath: The log path in OSS. |
machineType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property machineType: The type of the machine. |
masterPwd |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property masterPwd: The SSH password for the master node. |
metaStoreConf |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property metaStoreConf: Meta store conf of specific meta store type. |
metaStoreType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property metaStoreType: Meta store type. |
optionSoftWareList |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property optionSoftWareList: The list of optional services. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The length of the subscription. |
relatedClusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster). |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group id. |
securityGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property securityGroupId: The ID of the security group. |
securityGroupName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property securityGroupName: The name of the security group to create. |
sshEnable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property sshEnable: Indicates whether SSH is enabled. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
useCustomHiveMetaDb |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property useCustomHiveMetaDb: A reserved parameter. |
userDefinedEmrEcsRole |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources. |
userInfo |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property userInfo:. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The ID of the VPC. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The ID of the Vswitch. |
whiteListType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property whiteListType: Not required. |
chargeType
Required
public java.lang.Object getChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property chargeType: The billing method.
Valid values: PostPaid and PrePaid. PostPaid: pay-as-you-go. PrePaid: subscription.
clusterType
Required
public java.lang.Object getClusterType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterType: The type of the cluster.
Allowd values: HADOOP, KAFKA, DRUID, ZOOKEEPER, DATA_SCIENCE, GATEWAY etc.
emrVer
Required
public java.lang.Object getEmrVer();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property emrVer: The version of EMR.
hostGroup
Required
public java.lang.Object getHostGroup();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
HostGroupProperty>
Property hostGroup:.
name
Required
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the cluster.
The name can be 1 to 64 characters in length and only contain Chinese characters, letters, numbers, hyphens (-), and underscores (_).
netType
Required
public java.lang.Object getNetType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property netType: The type of the network.
useLocalMetaDb
Required
public java.lang.Object getUseLocalMetaDb();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used.
zoneId
Required
public java.lang.Object getZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: The zone ID.
authorizeContent
Optional
public java.lang.Object getAuthorizeContent();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property authorizeContent: Not required.
autoRenew
Optional
public java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Indicates whether the subscription cluster is auto-renewed.
bootstrapAction
Optional
public java.lang.Object getBootstrapAction();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
BootstrapActionProperty>
Property bootstrapAction:.
clickHouseConf
Optional
public java.lang.Object getClickHouseConf();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property clickHouseConf: undefined.
config
Optional
public java.lang.Object getConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ConfigProperty>
Property config:.
configurations
Optional
public java.lang.Object getConfigurations();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property configurations: Not required.
depositType
Optional
public java.lang.Object getDepositType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property depositType: The hosting type.
easEnable
Optional
public java.lang.Object getEasEnable();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property easEnable: Indicates whether the cluster is a high-security cluster.
highAvailabilityEnable
Optional
public java.lang.Object getHighAvailabilityEnable();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property highAvailabilityEnable: Indicates whether the cluster is a high-availability cluster.
A value of true indicates that two master nodes are required.
initCustomHiveMetaDb
Optional
public java.lang.Object getInitCustomHiveMetaDb();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property initCustomHiveMetaDb: A reserved parameter.
Not required.
instanceGeneration
Optional
public java.lang.Object getInstanceGeneration();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceGeneration: The generation of the ECS instances.
ioOptimized
Optional
public java.lang.Object getIoOptimized();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property ioOptimized: Indicates wether I\/O optimization is enabled.
Default value: true.
isOpenPublicIp
Optional
public java.lang.Object getIsOpenPublicIp();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isOpenPublicIp: Indicates whether a public IP address is assigned.
A value of true indicates that a bandwidth of 8 MB is set by default.
keyPairName
Optional
public java.lang.Object getKeyPairName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keyPairName: The name of the key pair.
logPath
Optional
public java.lang.Object getLogPath();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property logPath: The log path in OSS.
machineType
Optional
public java.lang.Object getMachineType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property machineType: The type of the machine.
masterPwd
Optional
public java.lang.Object getMasterPwd();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property masterPwd: The SSH password for the master node.
The password must meet the following requirements. Length constraints: Minimum length of 8 characters. Maximum length of 30 characters. It must contain three types of characters (uppercase letters, lowercase letters, numbers, and special symbols).
metaStoreConf
Optional
public java.lang.Object getMetaStoreConf();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property metaStoreConf: Meta store conf of specific meta store type.
If MetaStoreType=user_rds, MetaStoreConf should be like {"dbUrl":"jdbc:mysql://xxxxxx", "dbUserName":"username", "dbPassword":"password"}
metaStoreType
Optional
public java.lang.Object getMetaStoreType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property metaStoreType: Meta store type.
Allow types: local: Local cluster unified: Unified meta data user_rds: User's RDS
optionSoftWareList
Optional
public java.lang.Object getOptionSoftWareList();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property optionSoftWareList: The list of optional services.
period
Optional
public java.lang.Object getPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The length of the subscription.
Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36. A value is required when ChargeType=PrePaid.
relatedClusterId
Optional
public java.lang.Object getRelatedClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster).
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
securityGroupId
Optional
public java.lang.Object getSecurityGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupId: The ID of the security group.
You can create a security group in the ECS console and use it. Note: If you use an existing security group, the default security group policy is applied to this security group: Only port 22 is open at the inbound and all ports are open at the outbound. You need to specify either SecurityGroupId or SecurityGroupName.
securityGroupName
Optional
public java.lang.Object getSecurityGroupName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupName: The name of the security group to create.
If the ID of the security group is not specified, this name is used to create a new security group. After the cluster is created, you can view the ID of the security group on the Cluster Management page. The default security group policy is applied to this security group: Only port 22 is open at the inbound and all ports are open at the outbound. You need to specify either SecurityGroupId or SecurityGroupName.
sshEnable
Optional
public java.lang.Object getSshEnable();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property sshEnable: Indicates whether SSH is enabled.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
useCustomHiveMetaDb
Optional
public java.lang.Object getUseCustomHiveMetaDb();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property useCustomHiveMetaDb: A reserved parameter.
Not required.
userDefinedEmrEcsRole
Optional
public java.lang.Object getUserDefinedEmrEcsRole();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources.
userInfo
Optional
public java.lang.Object getUserInfo();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
UserInfoProperty>
Property userInfo:.
vpcId
Optional
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the VPC.
A value is required when NetType=vpc.
vSwitchId
Optional
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The ID of the Vswitch.
A value is required when NetType=vpc.
whiteListType
Optional
public java.lang.Object getWhiteListType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property whiteListType: Not required.