ALIYUN::HBase::Cluster类型用于创建HBase集群。
语法
{
"Type": "ALIYUN::HBase::Cluster",
"Properties": {
"AutoRenewPeriod": Integer,
"ColdStorageSize": Integer,
"EngineVersion": String,
"ResourceGroupId": String,
"NodeCount": Integer,
"ZoneId": String,
"VSwitchId": String,
"Period": Integer,
"EncryptionKey": String,
"PayType": String,
"MasterInstanceType": String,
"DiskType": String,
"VpcId": String,
"SecurityIPList": String,
"CoreInstanceType": String,
"DiskSize": Integer,
"ClusterName": String,
"Engine": String,
"PeriodUnit": String,
"DeletionProtection": Boolean
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
AutoRenewPeriod | Integer | 否 | 否 | 设置实例自动续费周期。 | 单位为月。 例如自动续费周期设置为2,表示实例到期后自动续费2个月。 说明 自动续费周期默认值为0,表示实例到期后不自动续费。 |
ColdStorageSize | Integer | 否 | 否 | 实例的冷存储容量大小。 | 单位为GB。取值:
说明 仅当实例的引擎类型为hbaseue时,开启冷存储功能才有效。 |
EngineVersion | String | 是 | 否 | 实例的引擎版本。 | 与引擎类型有关,取值:
|
ResourceGroupId | String | 否 | 否 | 资源组ID。 | 无 |
NodeCount | Integer | 是 | 是 | Core节点个数。 | 取值如下:
|
ZoneId | String | 是 | 否 | 可用区ID。 | 无 |
VSwitchId | String | 否 | 否 | 专有网络下的虚拟交换机ID。 | 无 |
Period | Integer | 否 | 否 | 包年包月实例的购买时长。 | 取值:
说明 仅当实例的付费类型为Prepaid时,需要填写此参数。 |
EncryptionKey | String | 否 | 否 | 加密的密钥ID。 | 如果未启用加密则为空,当前云盘版加密开启后无法关闭。 |
PayType | String | 是 | 否 | 实例的付费类型。 | 取值:
|
MasterInstanceType | String | 否 | 是 | Master节点规格。 | 您可以调用DescribeAvailableResource接口获取规格值。 |
DiskType | String | 否 | 否 | 实例的Core磁盘类型。 | 取值:
|
VpcId | String | 否 | 否 | 专有网络ID。 | 本参数与 |
SecurityIPList | String | 否 | 是 | 添加实例的白名单 IP 地址。 | 多个白名单IP地址之间使用半角逗号(,)分隔。 说明 如果IP地址设置为127.0.0.1,表示禁止所有地址访问该实例。例如IP地址为192.168.0.0/24表示允许所有192.168.0.XX的IP地址访问该实例。 |
CoreInstanceType | String | 是 | 是 | Core节点规格。 | 您可以调用DescribeAvailableResource接口获取规格值。 |
DiskSize | Integer | 否 | 是 | Core单节点磁盘大小。 | 单位:GB。
|
ClusterName | String | 否 | 是 | 实例名称。 | 命名规则为:
|
Engine | String | 是 | 否 | 数据库引擎类型。 | 取值:
|
PeriodUnit | String | 否 | 否 | 包年包月实例的购买单位。 | 取值:
说明 仅当实例的付费类型为Prepaid时,需要填写此参数。 |
DeletionProtection | Boolean | 否 | 是 | 开启或者关闭删除保护。 | 取值:
|
返回值
Fn::GetAtt
UiProxyConnAddrInfo:WebUI连接信息列表。
ClusterId:实例ID。
ServiceConnAddrs:子服务地址列表。
ThriftConn:Thrift连接地址信息列表。
SlbConnAddrs:Slb连接信息列表。
ZkConnAddrs:Zookeeper连接信息列表。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Required: false
Type: String
Description:
en: |-
The ID of the virtual private cloud (VPC). If you leave this parameter and the VSwitchId
parameter empty, the classic network type is used. The VPC network type is preferred.
VSwitchId:
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: ${VpcId}
ZoneId: ${ZoneId}
Required: false
Type: String
Description:
en: The ID of the vSwitch.
PayType:
Default: Postpaid
Required: true
Type: String
Description:
en: |-
The billing method.
Prepaid: The subscription billing method is used.
Postpaid: The pay-as-you-go billing method is used.
AllowedValues:
- Prepaid
- Postpaid
ZoneId:
AssociationProperty: ZoneId
Required: true
Type: String
Description:
en: The ID of the zone.
Resources:
Cluster:
Type: ALIYUN::HBase::Cluster
Properties:
Engine: hbaseue
VpcId:
Ref: VpcId
CoreInstanceType: hbase.sn1.2xlarge
PayType:
Ref: PayType
ZoneId:
Ref: ZoneId
MasterInstanceType: hbase.sn1.large
VSwitchId:
Ref: VSwitchId
EngineVersion: '2.0'
NodeCount: 2
DiskSize: 400
DiskType: cloud_ssd
Outputs:
ServiceConnAddrs:
Description: LIST of ServiceConnAddr.
Value:
Fn::GetAtt:
- Cluster
- ServiceConnAddrs
UiProxyConnAddrInfo:
Description: WebUI connection information list.
Value:
Fn::GetAtt:
- Cluster
- UiProxyConnAddrInfo
ThriftConn:
Description: Thrift Connection address list.
Value:
Fn::GetAtt:
- Cluster
- ThriftConn
SlbConnAddrs:
Description: LIST of SlbConnAddr.
Value:
Fn::GetAtt:
- Cluster
- SlbConnAddrs
ClusterId:
Description: The ID of the instance.
Value:
Fn::GetAtt:
- Cluster
- ClusterId
ZkConnAddrs:
Description: List of ZkConnAddr.
Value:
Fn::GetAtt:
- Cluster
- ZkConnAddrs
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "The ID of the zone."
},
"Required": true
},
"VSwitchId": {
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}",
"ZoneId": "${ZoneId}"
},
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"Type": "String",
"Description": {
"en": "The ID of the vSwitch."
},
"Required": false
},
"PayType": {
"Type": "String",
"Description": {
"en": "The billing method.\nPrepaid: The subscription billing method is used.\nPostpaid: The pay-as-you-go billing method is used."
},
"AllowedValues": [
"Prepaid",
"Postpaid"
],
"Required": true,
"Default": "Postpaid"
},
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"en": "The ID of the virtual private cloud (VPC). If you leave this parameter and the VSwitchId\nparameter empty, the classic network type is used. The VPC network type is preferred."
},
"Required": false
}
},
"Resources": {
"Cluster": {
"Type": "ALIYUN::HBase::Cluster",
"Properties": {
"EngineVersion": "2.0",
"NodeCount": 2,
"ZoneId": {
"Ref": "ZoneId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"PayType": {
"Ref": "PayType"
},
"MasterInstanceType": "hbase.sn1.large",
"DiskType": "cloud_ssd",
"VpcId": {
"Ref": "VpcId"
},
"CoreInstanceType": "hbase.sn1.2xlarge",
"Engine": "hbaseue",
"DiskSize": 400
}
}
},
"Outputs": {
"UiProxyConnAddrInfo": {
"Description": "WebUI connection information list.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"UiProxyConnAddrInfo"
]
}
},
"ClusterId": {
"Description": "The ID of the instance.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"ClusterId"
]
}
},
"ServiceConnAddrs": {
"Description": "LIST of ServiceConnAddr.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"ServiceConnAddrs"
]
}
},
"ThriftConn": {
"Description": "Thrift Connection address list.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"ThriftConn"
]
}
},
"SlbConnAddrs": {
"Description": "LIST of SlbConnAddr.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"SlbConnAddrs"
]
}
},
"ZkConnAddrs": {
"Description": "List of ZkConnAddr.",
"Value": {
"Fn::GetAtt": [
"Cluster",
"ZkConnAddrs"
]
}
}
}
}