forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
self-built-hive-data-warehouse-migrated-to-emr.yml
779 lines (779 loc) · 24.7 KB
/
self-built-hive-data-warehouse-migrated-to-emr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: This solution uses ROS to create an on-premises Hadoop cluster and migrate the
cluster data to an Alibaba Cloud E-MapReduce cluster.
zh-cn: 本方案利用ROS创建自建Hadoop集群的数据迁移到阿里云自建Hadoop或者EMR。
Conditions:
IfSpotPriceLimit:
Fn::Equals:
- 0
- Ref: SpotPriceLimit
Parameters:
VpcCidrBlock:
Type: String
Label:
en: VPC CIDR Block
zh-cn: 专有网络网段
Description:
en: 'The IP address range of the VPC in the CIDR Block form; <br>you can use
the following IP address ranges: <br><font color=''green''>[10.0.0.0/8]</font><br><font
color=''green''>[172.16.0.0/12]</font><br><font color=''green''>[192.168.0.0/16]</font>'
zh-cn: 专有网络IP地址段范围,<br>您可以使用以下的IP地址段:<br><font color='green'>[10.0.0.0/8]</font><br><font
color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>
Default: 192.168.0.0/16
AllowedValues:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
VSwitchZoneId:
Type: String
Label:
en: VSwitch Available Zone
zh-cn: 交换机可用区
Description:
en: Availability Zone ID,<br><b>note: <font color='blue'>Before selecting, please
confirm that the Availability Zone supports the specification of creating
ECS and RDS resources</font></b>
zh-cn: 可用区ID。<br><b>注: <font color='blue'>选择可用区前请确认该可用区是否支持创建ECS和RDS资源的规格</font></b>
AssociationProperty: ALIYUN::ECS::Instance:ZoneId
VSwCidrBlock:
Type: String
Label:
en: VSwitch CIDR Block
zh-cn: 交换机网段
Description:
en: Must be a sub-network segment of the proprietary network and is not occupied
by other VSwitches.
zh-cn: 必须是所属专有网络的子网段,并且没有被其他交换机占用。
Default: 192.168.0.0/24
EcsGroupImageId:
Type: String
Label:
en: Image
zh-cn: 镜像
Description:
en: Image ID,see detail:<b><a href='https://www.alibabacloud.com/help/en/doc-detail/112977.html'
target='_blank'><font color='blue'>Find the mirror</font></a></b>
zh-cn: 镜像ID, 详见:<b><a href='https://help.aliyun.com/document_detail/112977.html'
target='_blank'><font color='blue'>查找镜像</font></a></b>
Default: centos_7
EcsGroupInstanceType:
Type: String
Label:
en: Instance Type
zh-cn: 实例规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.c5.large</b></font><br>note:
a few zones do not support general specifications<br>see detail: <a href=''https://www.alibabacloud.com/help/en/doc-detail/25378.html''
target=''_blank''><b><font color=''blue''>Instance Specification Family</font></a></b>'
zh-cn: 填写VSwitch可用区下可使用的规格;<br>通用规格:<font color='red'><b>ecs.c5.large</b></font><br>注:可用区可能不支持通用规格<br>规格详见:<a
href='https://help.aliyun.com/document_detail/25378.html' target='_blank'><b><font
color='blue'>实例规格族</font></a></b>
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
EcsGroupMaxAmount:
Type: Number
Label:
en: Amount
zh-cn: 实例数量
Description:
en: Number of Instances under VSwitch
zh-cn: 交换机下的实例数量
Default: 1
AllowedValues:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
EcsGroupSystemDiskSize:
Type: Number
Label:
en: System Disk Space
zh-cn: 系统盘空间
Description:
en: 'System disk size, range of values: 40-500, units: GB.'
zh-cn: 系统盘大小, 取值范围:[40, 500], 单位:GB。
Default: 80
EcsGroupSystemDiskCategory:
Type: String
Label:
en: System Disk Type
zh-cn: 系统盘类型
Description:
en: '<font color=''blue''><b>Optional values:</b></font><br>[cloud_efficiency:
<font color=''green''>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font color=''green''>SSD
Cloud Disk</font>]<br>[cloud_essd: <font color=''green''>ESSD Cloud Disk</font>]<br>[cloud:
<font color=''green''>Cloud Disk</font>]<br>[ephemeral_ssd: <font color=''green''>Local
SSD Cloud Disk</font>]'
zh-cn: '<font color=''blue''><b>可选值:</b></font><br>[cloud_efficiency: <font
color=''green''>高效云盘</font>]<br>[cloud_ssd: <font color=''green''>SSD云盘</font>]<br>[cloud_essd:
<font color=''green''>ESSD云盘</font>]<br>[cloud: <font color=''green''>普通云盘</font>]<br>[ephemeral_ssd:
<font color=''green''>本地SSD盘</font>]'
Default: cloud_efficiency
AllowedValues:
- cloud_efficiency
- cloud_ssd
- cloud
- cloud_essd
- ephemeral_ssd
SpotStrategy:
Type: String
Label:
en: Instance Preemption Policy
zh-cn: 实例抢占策略
Description:
en: '<font color=''blue''><b>Optional values: </b></font><br>[NoSpot:<font color=''green''>Regular
pay-as-you-go instances</font>]<br>[SpotWithPriceLimit:<font color=''green''>A
preemptive instance of setting a cap price</font>]<br>[SpotAsPriceGo:<font
color=''green''>The system automatically bids, following the actual price
in the current market</font>]<br><font color=''blue''></a>'
zh-cn: '<font color=''blue''><b>可选值: </b></font><br>[NoSpot:<font color=''green''>正常按量付费实例</font>]<br>[SpotWithPriceLimit:<font
color=''green''>设置上限价格的抢占式实例</font>]<br>[SpotAsPriceGo:<font color=''green''>系统自动出价,跟随当前市场实际价格</font>]<br><font
color=''blue''></a>'
Default: SpotAsPriceGo
AllowedValues:
- NoSpot
- SpotWithPriceLimit
- SpotAsPriceGo
SpotPriceLimit:
Type: Number
Label:
en: Maximum Price
zh-cn: 最高价格
Description:
en: Supports up to 3 decimal places.This parameter takes effect when < instance
preemption policy > is set to SpotWithPriceLimit.
zh-cn: 支持最多3位小数。当<实例抢占策略>取值为SpotWithPriceLimit时,此参数生效。
Default: 0
HostName:
Type: String
Label:
en: Host Name
zh-cn: 主机名
Description:
en: Linux system, 2-64 characters in length, cannot use (.) or (-) symbols consecutically
and cannot begin or end with a dot (.) or a hyphen (-). Upper and lower case
letters, Numbers, or hyphens (-) are allowed.
zh-cn: Linux系统,长度2-64个字符,不能连续使用(.)或(-)符号并且不能以点号(.)或连字符(-)开头或结尾,允许使用大小写字母、数字或连字符(-)。
Default: mysql55
EcsGroupPassword:
Type: String
Label:
en: Instance Password
zh-cn: 实例密码
Description:
en: Server login password, Length 8-30, must contain three(Capital letters,
lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol
in).
zh-cn: 服务器登录密码,长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。
ConstraintDescription:
en: Length 8-30, must contain three(Capital letters, lowercase letters, numbers,
()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).
zh-cn: 长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。
AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
MinLength: 8
MaxLength: 30
NoEcho: true
DBInstanceEngineAndVersion:
Type: String
Label:
en: Type And Version
zh-cn: 类型与版本号
Description:
en: Database type and version number.
zh-cn: 数据库类型与版本号。
Default: MySQL-5.7
AllowedValues:
- MySQL-5.5
- MySQL-5.6
- MySQL-5.7
- MySQL-8.0
DBInstanceClass:
Type: String
Label:
en: Specifications
zh-cn: 实例规格
Description:
en: 'Select the instance specification based on the type of database engine
and the available area support;<br>see detail: <a href=''https://www.alibabacloud.com/help/doc-detail/26312.htm''
target=''_blank''><b><font color=''blue''>Instance specification sheet</font></b></a>'
zh-cn: 根据数据库引擎的类型和可用的区域支持选择实例规格;<br>请参见详细信息:<a href='https://help.aliyun.com/document_detail/26312.html'
target='_blank'><b><font color='blue'>实例规格表</font></b></a>
Default: rds.mysql.s2.large
DBInstanceDBName:
Type: String
Label:
en: Database Name
zh-cn: 数据库名称
Description:
en: The database name created by the instance, consisting of lowercase letters,
numbers, underscores, and middle lines, beginning with letters, ending with
letters or numbers, up to 64 characters.
zh-cn: 实例创建的数据库名称,由小写字母、数字、下划线、中划线组成,以字母开头,字母或数字结尾,最多64个字符。
Default: hive
DBInstanceStorage:
Type: Number
Label:
en: Storage Space
zh-cn: 存储空间
Description:
en: 'Database storage space, units: GB, per 5GB increment, value range: 5-1000.'
zh-cn: 数据库存储空间, 单位:GB, 每5GB进行递增,取值范围:5-1000。
Default: 5
MinValue: 5
MaxValue: 1000
DBInstanceMasterUsername:
Type: String
Label:
en: Database Account
zh-cn: 数据库账号
Description:
en: Database read-write account with a maximum of 16 characters, consisting
of lowercase letters, Numbers, underscores, beginning letters, and ending
letters or Numbers.
zh-cn: 数据库可读写的账号,最长16个字符, 由小写字母,数字、下划线组成、字母开头,字母或数字结尾。
Default: hivedbuser
MaxLength: 16
DBInstanceMasterUserPassword:
Type: String
Label:
en: Account Password
zh-cn: 账号密码
Description:
en: 'Length 8-32 characters, can contain size letters, Numbers and special symbols
(including:!@ # $% ^ & * - + = _).'
zh-cn: 长度8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*-+=_)。
ConstraintDescription:
en: '8-32 characters, can contain size letters, Numbers and special symbols
(including:!@ # $% ^ & * - + = _).'
zh-cn: 8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*-+=_)。
MinLength: 8
MaxLength: 32
NoEcho: true
ClusterEmrVer:
Type: String
Label:
en: EMR Version
zh-cn: EMR版本
Description:
en: EMR product version
zh-cn: EMR产品版本
Default: EMR-3.22.4
AllowedValues:
- EMR-3.23.0
- EMR-3.22.1
- EMR-3.22.4
- EMR-3.21.3
- EMR-3.20.0
ClusterInstanceType:
Type: String
Label:
en: Instance Type
zh-cn: 实例规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.g5.xlarge</b></font><br><b>note:
<font color=''blue''>you can refer to the E-MapReduce documentation for instance
recommendations</b></font><br>see detail: <a href=''https://www.alibabacloud.com/help/doc-detail/35223.html''
target=''_blank''><b><font color=''blue''>Instance Specification Family</font></a></b>'
zh-cn: '填写VSwitch可用区下可使用的规格;<br>通用规格:<font color=''red''><b>ecs.g5.xlarge</b></font><br><b>注:
<font color=''blue''>可以借鉴E-MapReduce的文档的实例推荐</b></font><br>详见:<a href=''https://help.aliyun.com/document_detail/35223.html''
target=''_blank''><b><font color=''blue''>实例规格族</font></a></b>'
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
ClusterDiskType:
Type: String
Label:
en: Disk Type
zh-cn: 磁盘类型
Description:
en: '<font color=''blue''><b>Optional values:</b></font><br>[CLOUD_EFFICIENCY:
<font color=''green''>Efficient Cloud Disk</font>]<br>[CLOUD_SSD: <font color=''green''>SSD
Cloud Disk</font>]'
zh-cn: '<font color=''blue''><b>可选值:</b></font><br>[CLOUD_EFFICIENCY: <font
color=''green''>高效云盘</font>]<br>[CLOUD_SSD: <font color=''green''>SSD云盘</font>]'
Default: CLOUD_SSD
AllowedValues:
- CLOUD_EFFICIENCY
- CLOUD_SSD
ClusterCoreNodeCount:
Type: Number
Label:
en: Core Node Count
zh-cn: Core实例数量
Description:
en: 'Number of Core instances, range of values: [1,1000].'
zh-cn: Core实例数量。范围[1,1000]。
Default: 2
MinValue: 1
MaxValue: 1000
ClusterMasterSysDiskCapacity:
Type: Number
Label:
en: Master System Disk Capacity
zh-cn: Master实例系统盘大小
Description:
en: 'Master instance system disk size, range of values: 40-500, units: GB.'
zh-cn: Master实例系统盘大小, 取值范围:[40, 500], 单位:GB。
Default: 120
MinValue: 40
MaxValue: 500
ClusterCoreSysDiskCapacity:
Type: Number
Label:
en: Core System Disk Capacity
zh-cn: Core实例系统盘大小
Description:
en: 'Core instance system disk size, range of values: 40-500, units: GB.'
zh-cn: Core实例系统盘大小, 取值范围:[40, 500], 单位:GB。
Default: 120
MinValue: 40
MaxValue: 500
ClusterMasterDiskCapacity:
Type: Number
Label:
en: Master Disk Capacity
zh-cn: Master实例数据盘大小
Description:
en: 'Master instance data disk size, range of values: 40-32768, units: GB.'
zh-cn: Master实例数据盘大小, 取值范围:[40, 32768], 单位:GB。
Default: 80
MinValue: 40
MaxValue: 32768
ClusterCoreDiskCapacity:
Type: Number
Label:
en: Core Disk Capacity
zh-cn: Core实例数据盘大小
Description:
en: 'Core instance data disk size, range of values: 40-32768, units: GB.'
zh-cn: Core实例数据盘大小, 取值范围:[40, 32768], 单位:GB。
Default: 80
MinValue: 40
MaxValue: 32768
ClusterSshEnable:
Type: Boolean
Label:
en: Remote Logon
zh-cn: 远程登录
Description:
en: Whether to enable SSH.
zh-cn: 是否开启SSH。
Default: true
AllowedValues:
- true
- false
ClusterPassword:
Type: String
Label:
en: Login Password
zh-cn: 登录密码
Description:
en: The login password,Length 8-30, <b><font color='blue'>must contain four(Capital
letters, lowercase letters, numbers, !@#$%^&* special symbol in), Otherwise
the resource stack will fail to be created</font></b>.
zh-cn: 登录密码,长度8-30,数字、特殊字符(包含: !@#$%^&* )、大写字母和小写字母<b><font color='blue'>必须占四种,
否则资源栈会创建失败</font></b>。
ConstraintDescription:
en: The login password,Length 8-30, must contain four(Capital letters, lowercase
letters, numbers, !@#$%^&* special symbol in), Otherwise the resource stack
will fail to be created.
zh-cn: 登录密码,长度8-30,数字、特殊字符(包含: !@#$%^&* )、大写字母和小写字母,必须占四种, 否则资源栈会创建失败。
MinLength: 8
MaxLength: 30
NoEcho: true
Resources:
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock:
Ref: VpcCidrBlock
VpcName:
Fn::Join:
- '-'
- - Vpc
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: 3aa89ba4-f7d0-475e-be6a-898cc0854d10
SecurityGroup:
Type: ALIYUN::ECS::SecurityGroup
Properties:
VpcId:
Ref: Vpc
SecurityGroupEgress:
- DestCidrIp: 0.0.0.0/0
IpProtocol: all
NicType: internet
PortRange: -1/-1
Priority: 1
SecurityGroupIngress:
- IpProtocol: tcp
NicType: internet
PortRange: 22/22
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: internet
PortRange: 433/433
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: internet
PortRange: 80/80
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: tcp
NicType: internet
PortRange: 3389/3389
Priority: 1
SourceCidrIp: 0.0.0.0/0
- IpProtocol: icmp
NicType: intranet
PortRange: -1/-1
Priority: 1
SourceCidrIp: 0.0.0.0/0
SecurityGroupName:
Fn::Join:
- '-'
- - SecurityGroup
- Ref: ALIYUN::StackId
Tags:
- Key: best_practice
Value: '124'
DependsOn: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: 924333a5-b0b7-4079-ac53-801c2bee4462
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: VSwitchZoneId
VpcId:
Ref: Vpc
CidrBlock:
Ref: VSwCidrBlock
VSwitchName:
Fn::Join:
- '-'
- - VSwitch
- Ref: ALIYUN::StackId
DependsOn: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: 3c3887ca-6775-41d3-81b2-49e3d0a2df0e
EcsGroup:
Type: ALIYUN::ECS::InstanceGroup
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
SecurityGroupId:
Ref: SecurityGroup
ImageId:
Ref: EcsGroupImageId
HostName:
Ref: HostName
InstanceChargeType: PostPaid
InstanceName:
Fn::Join:
- '-'
- - EcsGroup
- Ref: ALIYUN::StackId
InstanceType:
Ref: EcsGroupInstanceType
IoOptimized: optimized
MaxAmount:
Ref: EcsGroupMaxAmount
Password:
Ref: EcsGroupPassword
SpotPriceLimit:
Fn::If:
- IfSpotPriceLimit
- Ref: ALIYUN::NoValue
- Ref: SpotPriceLimit
SpotStrategy:
Ref: SpotStrategy
SystemDiskCategory:
Ref: EcsGroupSystemDiskCategory
SystemDiskSize:
Ref: EcsGroupSystemDiskSize
Tags:
- Key: best_practice
Value: '124'
DependsOn: VSwitch
Metadata:
ALIYUN::ROS::Designer:
id: 56757445-ba3c-462c-9e9b-92cf55cd7e3f
EmrCluster:
Type: ALIYUN::EMR::Cluster
Properties:
ZoneId:
Ref: VSwitchZoneId
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
SecurityGroupId:
Ref: SecurityGroup
ChargeType: PostPaid
ClusterType: HADOOP
EmrVer:
Ref: ClusterEmrVer
HostGroup:
- AutoRenew: false
ChargeType: PostPaid
DiskCapacity:
Ref: ClusterMasterDiskCapacity
DiskCount: 1
DiskType:
Ref: ClusterDiskType
HostGroupType: MASTER
InstanceType:
Ref: ClusterInstanceType
NodeCount: 1
Period: 1
SysDiskCapacity:
Ref: ClusterMasterSysDiskCapacity
SysDiskType:
Ref: ClusterDiskType
VSwitchId:
Ref: VSwitch
- AutoRenew: false
ChargeType: PostPaid
DiskCapacity:
Ref: ClusterCoreDiskCapacity
DiskCount: 4
DiskType:
Ref: ClusterDiskType
HostGroupType: CORE
InstanceType:
Ref: ClusterInstanceType
NodeCount:
Ref: ClusterCoreNodeCount
Period: 1
SysDiskCapacity:
Ref: ClusterCoreSysDiskCapacity
SysDiskType:
Ref: ClusterDiskType
VSwitchId:
Ref: VSwitch
IoOptimized: true
IsOpenPublicIp: true
MasterPwd:
Ref: ClusterPassword
MetaStoreConf:
Fn::Join:
- ''
- - '''{"dbUrl":"jdbc:mysql://'
- Fn::GetAtt:
- RdsDbInstance
- InnerConnectionString
- '","dbUserName":"'
- Ref: DBInstanceMasterUsername
- '","dbPassword":"'
- Ref: DBInstanceMasterUserPassword
- '"}'
Name:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
NetType: vpc
SshEnable:
Ref: ClusterSshEnable
UseLocalMetaDb: false
Metadata:
ALIYUN::ROS::Designer:
id: f4cdd1a8-a279-4217-b1da-c3b74fc15e0e
RdsDbInstance:
Type: ALIYUN::RDS::DBInstance
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
DBInstanceClass:
Ref: DBInstanceClass
DBInstanceStorage:
Ref: DBInstanceStorage
DBMappings:
- CharacterSetName: utf8
DBName:
Ref: DBInstanceDBName
Engine:
Fn::Select:
- '0'
- Fn::Split:
- '-'
- Ref: DBInstanceEngineAndVersion
EngineVersion:
Fn::Select:
- '1'
- Fn::Split:
- '-'
- Ref: DBInstanceEngineAndVersion
MasterUserPassword:
Ref: DBInstanceMasterUserPassword
MasterUserType: Super
MasterUsername:
Ref: DBInstanceMasterUsername
SecurityIPList:
Ref: VpcCidrBlock
Tags:
Key: best_practice
Value: '124'
DependsOn:
- VSwitch
Metadata:
ALIYUN::ROS::Designer:
id: aa6d494c-d28a-407b-a949-c74061048dc1
Outputs:
AccountName:
Description:
en: RDS Account Name
zh-cn: RDS账号名称
Value:
Ref: DBInstanceMasterUsername
DBInstanceDbName:
Description:
en: RDS Database Name
zh-cn: RDS数据库名称
Value:
Ref: DBInstanceDBName
RDSInnerConnectionString:
Description:
en: RDS Inner Connection String
zh-cn: RDS内网连接串
Value:
Fn::GetAtt:
- RdsDbInstance
- InnerConnectionString
RDSInstanceId:
Description:
en: RDS Instance ID
zh-cn: RDS实例ID
Value:
Fn::GetAtt:
- RdsDbInstance
- DBInstanceId
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- VpcCidrBlock
- VSwitchZoneId
- VSwCidrBlock
Label:
default: VPC
- Parameters:
- EcsGroupImageId
- EcsGroupInstanceType
- EcsGroupMaxAmount
- EcsGroupSystemDiskSize
- EcsGroupSystemDiskCategory
- SpotStrategy
- SpotPriceLimit
- HostName
- EcsGroupPassword
Label:
default: ECS
- Parameters:
- DBInstanceEngineAndVersion
- DBInstanceClass
- DBInstanceDBName
- DBInstanceStorage
- DBInstanceMasterUsername
- DBInstanceMasterUserPassword
Label:
default: RDS
- Parameters:
- ClusterEmrVer
- ClusterInstanceType
- ClusterDiskType
- ClusterCoreNodeCount
- ClusterMasterSysDiskCapacity
- ClusterCoreSysDiskCapacity
- ClusterMasterDiskCapacity
- ClusterCoreDiskCapacity
- ClusterSshEnable
- ClusterPassword
Label:
default: EMR
TemplateTags:
- acs:solution:数据迁移:自建Hive数据仓库跨版本迁移到阿里云EMR
ALIYUN::ROS::Designer:
23f048f5-625d-454b-be45-b7eef0a1a593:
source:
id: 56757445-ba3c-462c-9e9b-92cf55cd7e3f
target:
id: 924333a5-b0b7-4079-ac53-801c2bee4462
z: 1
26c7b49a-29cf-4e20-9513-f068acbc6c33:
source:
id: f4cdd1a8-a279-4217-b1da-c3b74fc15e0e
target:
id: 924333a5-b0b7-4079-ac53-801c2bee4462
z: 1
3aa89ba4-f7d0-475e-be6a-898cc0854d10:
embeds:
- 3c3887ca-6775-41d3-81b2-49e3d0a2df0e
- 924333a5-b0b7-4079-ac53-801c2bee4462
position:
x: 200
y: 55
size:
height: 419
width: 444
z: 0
3c3887ca-6775-41d3-81b2-49e3d0a2df0e:
embeds:
- 56757445-ba3c-462c-9e9b-92cf55cd7e3f
- aa6d494c-d28a-407b-a949-c74061048dc1
- f4cdd1a8-a279-4217-b1da-c3b74fc15e0e
position:
x: 274
y: 100
size:
height: 251
width: 275
z: 1
56757445-ba3c-462c-9e9b-92cf55cd7e3f:
position:
x: 456
y: 215
size:
height: 60
width: 60
z: 2
924333a5-b0b7-4079-ac53-801c2bee4462:
position:
x: 377
y: 370
size:
height: 60
width: 60
z: 1
aa6d494c-d28a-407b-a949-c74061048dc1:
position:
x: 379
y: 137
size:
height: 60
width: 60
z: 2
f4cdd1a8-a279-4217-b1da-c3b74fc15e0e:
position:
x: 302
y: 216
size:
height: 60
width: 60
z: 2