Skip to content

ClusterProps

Properties for defining a Cluster.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-emr-cluster

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkemr"
&alicloudroscdkemr.ClusterProps {
    ChargeType: interface{},
    ClusterType: interface{},
    EmrVer: interface{},
    HostGroup: interface{},
    Name: interface{},
    NetType: interface{},
    UseLocalMetaDb: interface{},
    ZoneId: interface{},
    AuthorizeContent: interface{},
    AutoRenew: interface{},
    BootstrapAction: interface{},
    ClickHouseConf: interface{},
    Config: interface{},
    Configurations: interface{},
    DepositType: interface{},
    EasEnable: interface{},
    HighAvailabilityEnable: interface{},
    InitCustomHiveMetaDb: interface{},
    InstanceGeneration: interface{},
    IoOptimized: interface{},
    IsOpenPublicIp: interface{},
    KeyPairName: interface{},
    LogPath: interface{},
    MachineType: interface{},
    MasterPwd: interface{},
    MetaStoreConf: interface{},
    MetaStoreType: interface{},
    OptionSoftWareList: interface{},
    Period: interface{},
    RelatedClusterId: interface{},
    ResourceGroupId: interface{},
    SecurityGroupId: interface{},
    SecurityGroupName: interface{},
    SshEnable: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkemr.RosCluster.TagsProperty,
    UseCustomHiveMetaDb: interface{},
    UserDefinedEmrEcsRole: interface{},
    UserInfo: interface{},
    VpcId: interface{},
    VSwitchId: interface{},
    WhiteListType: interface{},
}

Properties

Name Type Description
ChargeType interface{} Property chargeType: The billing method.
ClusterType interface{} Property clusterType: The type of the cluster.
EmrVer interface{} Property emrVer: The version of EMR.
HostGroup interface{} Property hostGroup:.
Name interface{} Property name: The name of the cluster.
NetType interface{} Property netType: The type of the network.
UseLocalMetaDb interface{} Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used.
ZoneId interface{} Property zoneId: The zone ID.
AuthorizeContent interface{} Property authorizeContent: Not required.
AutoRenew interface{} Property autoRenew: Indicates whether the subscription cluster is auto-renewed.
BootstrapAction interface{} Property bootstrapAction:.
ClickHouseConf interface{} Property clickHouseConf: undefined.
Config interface{} Property config:.
Configurations interface{} Property configurations: Not required.
DepositType interface{} Property depositType: The hosting type.
EasEnable interface{} Property easEnable: Indicates whether the cluster is a high-security cluster.
HighAvailabilityEnable interface{} Property highAvailabilityEnable: Indicates whether the cluster is a high-availability cluster.
InitCustomHiveMetaDb interface{} Property initCustomHiveMetaDb: A reserved parameter.
InstanceGeneration interface{} Property instanceGeneration: The generation of the ECS instances.
IoOptimized interface{} Property ioOptimized: Indicates wether I\/O optimization is enabled.
IsOpenPublicIp interface{} Property isOpenPublicIp: Indicates whether a public IP address is assigned.
KeyPairName interface{} Property keyPairName: The name of the key pair.
LogPath interface{} Property logPath: The log path in OSS.
MachineType interface{} Property machineType: The type of the machine.
MasterPwd interface{} Property masterPwd: The SSH password for the master node.
MetaStoreConf interface{} Property metaStoreConf: Meta store conf of specific meta store type.
MetaStoreType interface{} Property metaStoreType: Meta store type.
OptionSoftWareList interface{} Property optionSoftWareList: The list of optional services.
Period interface{} Property period: The length of the subscription.
RelatedClusterId interface{} Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster).
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
SecurityGroupId interface{} Property securityGroupId: The ID of the security group.
SecurityGroupName interface{} Property securityGroupName: The name of the security group to create.
SshEnable interface{} Property sshEnable: Indicates whether SSH is enabled.
Tags *[]TagsProperty Property tags: Tags to attach to instance.
UseCustomHiveMetaDb interface{} Property useCustomHiveMetaDb: A reserved parameter.
UserDefinedEmrEcsRole interface{} Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources.
UserInfo interface{} Property userInfo:.
VpcId interface{} Property vpcId: The ID of the VPC.
VSwitchId interface{} Property vSwitchId: The ID of the Vswitch.
WhiteListType interface{} Property whiteListType: Not required.

ChargeTypeRequired

ChargeType interface{}
  • Type: interface{}

Property chargeType: The billing method.

Valid values: PostPaid and PrePaid. PostPaid: pay-as-you-go. PrePaid: subscription.


ClusterTypeRequired

ClusterType interface{}
  • Type: interface{}

Property clusterType: The type of the cluster.

Allowd values: HADOOP, KAFKA, DRUID, ZOOKEEPER, DATA_SCIENCE, GATEWAY etc.


EmrVerRequired

EmrVer interface{}
  • Type: interface{}

Property emrVer: The version of EMR.


HostGroupRequired

HostGroup interface{}
  • Type: interface{}

Property hostGroup:.


NameRequired

Name interface{}
  • Type: interface{}

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


NetTypeRequired

NetType interface{}
  • Type: interface{}

Property netType: The type of the network.


UseLocalMetaDbRequired

UseLocalMetaDb interface{}
  • Type: interface{}

Property useLocalMetaDb: Indicates whether the local Hive metadatabase is used.


ZoneIdRequired

ZoneId interface{}
  • Type: interface{}

Property zoneId: The zone ID.


AuthorizeContentOptional

AuthorizeContent interface{}
  • Type: interface{}

Property authorizeContent: Not required.


AutoRenewOptional

AutoRenew interface{}
  • Type: interface{}

Property autoRenew: Indicates whether the subscription cluster is auto-renewed.


BootstrapActionOptional

BootstrapAction interface{}
  • Type: interface{}

Property bootstrapAction:.


ClickHouseConfOptional

ClickHouseConf interface{}
  • Type: interface{}

Property clickHouseConf: undefined.


ConfigOptional

Config interface{}
  • Type: interface{}

Property config:.


ConfigurationsOptional

Configurations interface{}
  • Type: interface{}

Property configurations: Not required.


DepositTypeOptional

DepositType interface{}
  • Type: interface{}

Property depositType: The hosting type.


EasEnableOptional

EasEnable interface{}
  • Type: interface{}

Property easEnable: Indicates whether the cluster is a high-security cluster.


HighAvailabilityEnableOptional

HighAvailabilityEnable interface{}
  • Type: interface{}

Property highAvailabilityEnable: Indicates whether the cluster is a high-availability cluster.

A value of true indicates that two master nodes are required.


InitCustomHiveMetaDbOptional

InitCustomHiveMetaDb interface{}
  • Type: interface{}

Property initCustomHiveMetaDb: A reserved parameter.

Not required.


InstanceGenerationOptional

InstanceGeneration interface{}
  • Type: interface{}

Property instanceGeneration: The generation of the ECS instances.


IoOptimizedOptional

IoOptimized interface{}
  • Type: interface{}

Property ioOptimized: Indicates wether I\/O optimization is enabled.

Default value: true.


IsOpenPublicIpOptional

IsOpenPublicIp interface{}
  • Type: interface{}

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.


KeyPairNameOptional

KeyPairName interface{}
  • Type: interface{}

Property keyPairName: The name of the key pair.


LogPathOptional

LogPath interface{}
  • Type: interface{}

Property logPath: The log path in OSS.


MachineTypeOptional

MachineType interface{}
  • Type: interface{}

Property machineType: The type of the machine.


MasterPwdOptional

MasterPwd interface{}
  • Type: interface{}

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


MetaStoreConfOptional

MetaStoreConf interface{}
  • Type: interface{}

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"}


MetaStoreTypeOptional

MetaStoreType interface{}
  • Type: interface{}

Property metaStoreType: Meta store type.

Allow types: local: Local cluster unified: Unified meta data user_rds: User's RDS


OptionSoftWareListOptional

OptionSoftWareList interface{}
  • Type: interface{}

Property optionSoftWareList: The list of optional services.


PeriodOptional

Period interface{}
  • Type: interface{}

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.


RelatedClusterIdOptional

RelatedClusterId interface{}
  • Type: interface{}

Property relatedClusterId: The ID of the primary cluster (when the cluster that you create is a Gateway cluster).


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


SecurityGroupIdOptional

SecurityGroupId interface{}
  • Type: interface{}

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.


SecurityGroupNameOptional

SecurityGroupName interface{}
  • Type: interface{}

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.


SshEnableOptional

SshEnable interface{}
  • Type: interface{}

Property sshEnable: Indicates whether SSH is enabled.


TagsOptional

Tags *[]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.


UseCustomHiveMetaDbOptional

UseCustomHiveMetaDb interface{}
  • Type: interface{}

Property useCustomHiveMetaDb: A reserved parameter.

Not required.


UserDefinedEmrEcsRoleOptional

UserDefinedEmrEcsRole interface{}
  • Type: interface{}

Property userDefinedEmrEcsRole: The role that is assigned to EMR for calling ECS resources.


UserInfoOptional

UserInfo interface{}
  • Type: interface{}

Property userInfo:.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The ID of the VPC.

A value is required when NetType=vpc.


VSwitchIdOptional

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The ID of the Vswitch.

A value is required when NetType=vpc.


WhiteListTypeOptional

WhiteListType interface{}
  • Type: interface{}

Property whiteListType: Not required.