ClusterProps
Properties for defining a Cluster.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-cluster
Initializer
import ros_cdk_emr
ros_cdk_emr.ClusterProps(
charge_type: typing.Union[str, IResolvable],
cluster_type: typing.Union[str, IResolvable],
emr_ver: typing.Union[str, IResolvable],
host_group: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, HostGroupProperty]]],
name: typing.Union[str, IResolvable],
net_type: typing.Union[str, IResolvable],
use_local_meta_db: typing.Union[bool, IResolvable],
zone_id: typing.Union[str, IResolvable],
authorize_content: typing.Union[str, IResolvable] = None,
auto_renew: typing.Union[bool, IResolvable] = None,
bootstrap_action: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, BootstrapActionProperty]]] = None,
click_house_conf: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None,
config: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigProperty]]] = None,
configurations: typing.Union[str, IResolvable] = None,
deposit_type: typing.Union[str, IResolvable] = None,
eas_enable: typing.Union[bool, IResolvable] = None,
high_availability_enable: typing.Union[bool, IResolvable] = None,
init_custom_hive_meta_db: typing.Union[bool, IResolvable] = None,
instance_generation: typing.Union[str, IResolvable] = None,
io_optimized: typing.Union[bool, IResolvable] = None,
is_open_public_ip: typing.Union[bool, IResolvable] = None,
key_pair_name: typing.Union[str, IResolvable] = None,
log_path: typing.Union[str, IResolvable] = None,
machine_type: typing.Union[str, IResolvable] = None,
master_pwd: typing.Union[str, IResolvable] = None,
meta_store_conf: typing.Union[str, IResolvable] = None,
meta_store_type: typing.Union[str, IResolvable] = None,
option_soft_ware_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
related_cluster_id: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
security_group_id: typing.Union[str, IResolvable] = None,
security_group_name: typing.Union[str, IResolvable] = None,
ssh_enable: typing.Union[bool, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
use_custom_hive_meta_db: typing.Union[bool, IResolvable] = None,
user_defined_emr_ecs_role: typing.Union[str, IResolvable] = None,
user_info: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, UserInfoProperty]]] = None,
vpc_id: typing.Union[str, IResolvable] = None,
v_switch_id: typing.Union[str, IResolvable] = None,
white_list_type: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property chargeType: The billing method. |
cluster_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property clusterType: The type of the cluster. |
emr_ver |
typing.Union[str, ros_cdk_core.IResolvable] |
Property emrVer: The version of EMR. |
host_group |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, HostGroupProperty]]] |
Property hostGroup:. |
name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property name: The name of the cluster. |
net_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property netType: The type of the network. |
use_local_meta_db |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used. |
zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property zoneId: The zone ID. |
authorize_content |
typing.Union[str, ros_cdk_core.IResolvable] |
Property authorizeContent: Not required. |
auto_renew |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property autoRenew: Indicates whether the subscription cluster is auto-renewed. |
bootstrap_action |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, BootstrapActionProperty]]] |
Property bootstrapAction:. |
click_house_conf |
typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] |
Property clickHouseConf: undefined. |
config |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ConfigProperty]]] |
Property config:. |
configurations |
typing.Union[str, ros_cdk_core.IResolvable] |
Property configurations: Not required. |
deposit_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property depositType: The hosting type. |
eas_enable |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property easEnable: Indicates whether the cluster is a high-security cluster. |
high_availability_enable |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property highAvailabilityEnable: Indicates whether the cluster is a high-availability cluster. |
init_custom_hive_meta_db |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property initCustomHiveMetaDb: A reserved parameter. |
instance_generation |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceGeneration: The generation of the ECS instances. |
io_optimized |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property ioOptimized: Indicates wether I\/O optimization is enabled. |
is_open_public_ip |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property isOpenPublicIp: Indicates whether a public IP address is assigned. |
key_pair_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property keyPairName: The name of the key pair. |
log_path |
typing.Union[str, ros_cdk_core.IResolvable] |
Property logPath: The log path in OSS. |
machine_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property machineType: The type of the machine. |
master_pwd |
typing.Union[str, ros_cdk_core.IResolvable] |
Property masterPwd: The SSH password for the master node. |
meta_store_conf |
typing.Union[str, ros_cdk_core.IResolvable] |
Property metaStoreConf: Meta store conf of specific meta store type. |
meta_store_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property metaStoreType: Meta store type. |
option_soft_ware_list |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] |
Property optionSoftWareList: The list of optional services. |
period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property period: The length of the subscription. |
related_cluster_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster). |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: Resource group id. |
security_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityGroupId: The ID of the security group. |
security_group_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityGroupName: The name of the security group to create. |
ssh_enable |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property sshEnable: Indicates whether SSH is enabled. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to instance. |
use_custom_hive_meta_db |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property useCustomHiveMetaDb: A reserved parameter. |
user_defined_emr_ecs_role |
typing.Union[str, ros_cdk_core.IResolvable] |
Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources. |
user_info |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, UserInfoProperty]]] |
Property userInfo:. |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: The ID of the VPC. |
v_switch_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vSwitchId: The ID of the Vswitch. |
white_list_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property whiteListType: Not required. |
charge_typeRequired
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property chargeType: The billing method.
Valid values: PostPaid and PrePaid. PostPaid: pay-as-you-go. PrePaid: subscription.
cluster_typeRequired
cluster_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property clusterType: The type of the cluster.
Allowd values: HADOOP, KAFKA, DRUID, ZOOKEEPER, DATA_SCIENCE, GATEWAY etc.
emr_verRequired
emr_ver: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property emrVer: The version of EMR.
host_groupRequired
host_group: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, HostGroupProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, HostGroupProperty]]]
Property hostGroup:.
nameRequired
name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 (_).
net_typeRequired
net_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property netType: The type of the network.
use_local_meta_dbRequired
use_local_meta_db: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used.
zone_idRequired
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneId: The zone ID.
authorize_contentOptional
authorize_content: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property authorizeContent: Not required.
auto_renewOptional
auto_renew: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property autoRenew: Indicates whether the subscription cluster is auto-renewed.
bootstrap_actionOptional
bootstrap_action: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, BootstrapActionProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, BootstrapActionProperty]]]
Property bootstrapAction:.
click_house_confOptional
click_house_conf: typing.Union[IResolvable, typing.Mapping[typing.Any]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]
Property clickHouseConf: undefined.
configOptional
config: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, ConfigProperty]]]
Property config:.
configurationsOptional
configurations: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property configurations: Not required.
deposit_typeOptional
deposit_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property depositType: The hosting type.
eas_enableOptional
eas_enable: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property easEnable: Indicates whether the cluster is a high-security cluster.
high_availability_enableOptional
high_availability_enable: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, 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.
init_custom_hive_meta_dbOptional
init_custom_hive_meta_db: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property initCustomHiveMetaDb: A reserved parameter.
Not required.
instance_generationOptional
instance_generation: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceGeneration: The generation of the ECS instances.
io_optimizedOptional
io_optimized: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property ioOptimized: Indicates wether I\/O optimization is enabled.
Default value: true.
is_open_public_ipOptional
is_open_public_ip: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, 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.
key_pair_nameOptional
key_pair_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property keyPairName: The name of the key pair.
log_pathOptional
log_path: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property logPath: The log path in OSS.
machine_typeOptional
machine_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property machineType: The type of the machine.
master_pwdOptional
master_pwd: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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).
meta_store_confOptional
meta_store_conf: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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"}
meta_store_typeOptional
meta_store_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property metaStoreType: Meta store type.
Allow types: local: Local cluster unified: Unified meta data user_rds: User's RDS
option_soft_ware_listOptional
option_soft_ware_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property optionSoftWareList: The list of optional services.
periodOptional
period: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], 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.
related_cluster_idOptional
related_cluster_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster).
resource_group_idOptional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
security_group_idOptional
security_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
security_group_nameOptional
security_group_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
ssh_enableOptional
ssh_enable: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property sshEnable: Indicates whether SSH is enabled.
tagsOptional
tags: typing.List[TagsProperty]
- Type: typing.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.
use_custom_hive_meta_dbOptional
use_custom_hive_meta_db: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property useCustomHiveMetaDb: A reserved parameter.
Not required.
user_defined_emr_ecs_roleOptional
user_defined_emr_ecs_role: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources.
user_infoOptional
user_info: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, UserInfoProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, UserInfoProperty]]]
Property userInfo:.
vpc_idOptional
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: The ID of the VPC.
A value is required when NetType=vpc.
v_switch_idOptional
v_switch_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vSwitchId: The ID of the Vswitch.
A value is required when NetType=vpc.
white_list_typeOptional
white_list_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property whiteListType: Not required.