-
Notifications
You must be signed in to change notification settings - Fork 12
/
common.conf
executable file
·213 lines (177 loc) · 5.82 KB
/
common.conf
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
# Director 2.3 Config file
# Creates a small cluster including a Cloudera Data Science Workbench gateway node
#
#
# Copyright (c) 2016 Cloudera, Inc. All rights reserved.
#
#
# Simple AWS Cloudera Director configuration file with automatic role assignments
# that works as expected if you use a single instance type for all cluster nodes
#
#
# Cluster name
#
name: cdh-5-14
#
# Cloud provider configuration (credentials, region or zone and optional default image)
#
ssh {
username: ${SSH_USERNAME}
privateKey: ${SSH_PRIVATEKEY}
}
#
# Configuration for Cloudera Manager. Cloudera Director can use an existing instance
# or bootstrap everything from scratch for a new cluster
#
cloudera-manager {
instance: ${instances.master} {
instanceNamePrefix: cm-${name}
tags {
application: "Cloudera Manager 5"
}
}
krbAdminUsername: ${?krbAdminUsername}
krbAdminPassword: ${?krbAdminPassword}
configs {
# CLOUDERA_MANAGER corresponds to the Cloudera Manager Server configuration options
CLOUDERA_MANAGER {
enable_api_debug: false
custom_banner_html: "Managed by Cloudera Director"
MANAGES_PARCELS: true
enable_faster_bootstrap: true
KDC_TYPE: ${?KDC_TYPE}
AD_KDC_DOMAIN: ${?AD_KDC_DOMAIN}
KDC_HOST: ${?KDC_HOST_IP} # Using IP because of DSE-1796
SECURITY_REALM: ${?SECURITY_REALM}
KRB_MANAGE_KRB5_CONF: ${?KRB_MANAGE_KRB5_CONF}
# Note use of aes256 - need to ensure ALL cluster members have the necessary JCE policy files.
# If you find that you can get a ticket but not use it then this is likely the problem!
KRB_ENC_TYPES: ${?KRB_ENC_TYPES}
}
}
csds: [
"https://archive.cloudera.com/cdsw/1/csd/CLOUDERA_DATA_SCIENCE_WORKBENCH-1.3.0.jar",
"http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.2.0.cloudera2.jar"
]
#
# Automatically activate 60-Day Cloudera Enterprise Trial
#
enableEnterpriseTrial: true
## Dont install java but let the bootstrap scripts do the job
javaInstallationStrategy: NONE
repository: "http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.14/"
repositoryKeyUrl: "http://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera"
}
#
# Cluster description
#
cluster {
products {
CDH: 5.14 # includes Hive and Spark
SPARK2: 2.2.0.cloudera2
Anaconda: 4.4.0
CDSW: 1.3.0
}
parcelRepositories:
["http://archive.cloudera.com/cdh5/parcels/5.14/",
"https://archive.cloudera.com/spark2/parcels/2.2.0.cloudera2/",
"https://repo.continuum.io/pkgs/misc/parcels/"
"https://archive.cloudera.com/cdsw/1/parcels/1.3.0/"
]
services: [HDFS, YARN, CDSW, SPARK2_ON_YARN, HIVE, OOZIE, IMPALA, HUE]
configs {
CDSW {
"cdsw.domain.config": cdsw.placeholder-domain.com # The fully qualified domain name for the CDSW host
}
}
masters {
count: 1
instance: ${instances.master}
roles {
HDFS: [NAMENODE, SECONDARYNAMENODE]
YARN: [RESOURCEMANAGER, JOBHISTORY]
SPARK2_ON_YARN: [SPARK2_YARN_HISTORY_SERVER]
HIVE: [HIVESERVER2, HIVEMETASTORE]
OOZIE: [OOZIE_SERVER]
IMPALA: [CATALOGSERVER, STATESTORE]
HUE: [HUE_SERVER, KT_RENEWER]
}
YARN {
RESOURCEMANAGER {
yarn_scheduler_maximum_allocation_mb: 8192
yarn_scheduler_maximum_allocation_vcores: 4
}
}
}
workers {
count: ${CDHWORKER_NODECOUNT}
instance: ${instances.worker}
roles {
HDFS: [DATANODE]
IMPALA: [IMPALAD]
YARN: [NODEMANAGER]
}
configs {
YARN {
NODEMANAGER {
yarn_nodemanager_resource_memory_mb: ${YARN_RAM}
yarn_nodemanager_resource_cpu_vcores: ${YARN_VCORES}
}
}
}
}
cdswmasters {
count: 1
instance: ${instances.cdswmaster} {
bootstrapScriptsPaths:${instances.cdswmaster.bootstrapScriptsPaths} ["scripts/cdswmaster-bootstrap-script.sh"]
}
roles {
HDFS: [GATEWAY]
YARN: [GATEWAY]
CDSW: [CDSW_MASTER, CDSW_APPLICATION, CDSW_DOCKER]
SPARK2_ON_YARN: [GATEWAY]
HIVE: [GATEWAY]
}
configs {
SPARK2_ON_YARN {
GATEWAY {
"spark2-conf/spark-env.sh_client_config_safety_valve":
"""if [ -z ${PYSPARK_PYTHON} ];
then export PYSPARK_PYTHON=/opt/cloudera/parcels/Anaconda/bin/python spark-submit pyspark_script.py; fi"""
}
}
CDSW {
CDSW_DOCKER {
"cdsw.docker.devices.config": ${DOCKER_DISKS} # related to the ebs configuration above
}
}
}
}
cdswworkers {
count: ${CDSWWORKER_NODECOUNT}
minCount: ${CDSWWORKER_NODECOUNT}
instance: ${instances.cdswworker}
roles {
HDFS: [GATEWAY]
YARN: [GATEWAY]
CDSW: [CDSW_WORKER, CDSW_DOCKER]
SPARK2_ON_YARN: [GATEWAY]
HIVE: [GATEWAY]
}
configs {
CDSW {
CDSW_DOCKER {
"cdsw.docker.devices.config": ${DOCKER_DISKS} # related to the ebs configuration above
}
}
}
}
instancePostCreateScriptsPaths: ["scripts/cdsw_postcreate.sh"]
administrationSettings {
# If enabled, Director will attempt to automatically repair
# clusters whose instances have been terminated in the cloud provider.
autoRepairEnabled: true
autoRepairCooldownPeriodInSeconds: 300
}
}
common-instance-properties.bootstrapScriptsPaths: ["scripts/clean-yum-cache.sh", "scripts/kerberos_client.sh", "scripts/java8-bootstrap-script.sh", "scripts/users.sh"]